我希望每个人都做得很好!
我需要你的帮助。我在 routes.yaml 中做了一些更改,只是为了测试它在哪里工作。
# The routes of the project.
#
# Each route describes how an incoming URL is going to be processed.
"http://{default}/":
type: upstream
upstream: "mymagento:http"
redirects:
paths:
"/catalog/product/view/id/1": { to: "http://{default}/catalog/product/view/id/2"}
"https://{default}/":
type: upstream
upstream: "mymagento:http"
redirects:
paths:
"/catalog/product/view/id/1": { to: "https://{default}/catalog/product/view/id/2"}
"http://{all}/":
type: upstream
upstream: "mymagento:http"
这是我的 routes.yaml。但是这个 routes.yaml 破坏了网站。在错误日志中,我收到以下错误:
导入失败:警告:array_replace_recursive():在第 207 行的 /app/vendor/magento/module-config/App/Config/Type/System.php 中检测到递归
请告诉我并指导我这个文件有什么问题。