我在尝试设置.htaccess以便按照我想要的方式拥有Magento网址时遇到了一些问题。
我想像这样重定向网址:
这是我到目前为止所做的:
RewriteRule ^fr/store(.*)$ /store/$1?___store=france [L,P]
它可以将所有内容重定向到主存储,但我无法访问子目录或页面。
答案 0 :(得分:0)
^(.*)$
模式捕获当前URI,无论它位于位置栏中还是内部重定向。其中一个解决方案应该有效:
$1
替换为变量,例如%{REQUEST_URI}
此答案是从this answer复制的;它最初由用户ÁlvaroG。Vicario撰写。