我将一个站点移至一个 magento 新域名。主页运行良好,但所有链接都给出 404。
我验证了 httpd.conf 中启用了“*LoadModule rewrite_module modules/mod_rewrite.so*”
.htaccess 有这个条目:
## rewrite everything else to index.php
RewriteRule .* index.php [L]
旧址
http://old_site.com/ << this works
http://old_site.com/en/contentpage.html << this works
新网站
http://newsite.com/shop1/en
http://newsite.com/shop1/en/contentpage.html << this is a typical link from the home page
<< link from new site takes me here, but this gives 404 error
http://newsite.com/shop1/index.php/en/contentpage.html < this link, however, does works
http://newsite.com/shop1/en/contentpage.html << link from new site takes me here, but this gives 404 error
.