【发布时间】:2013-03-08 03:48:40
【问题描述】:
我的 .htaccess 重写规则如下:
RewriteCond %{REQUEST_URI} ^/eshop/$
RewriteRule ^(.*)$ %{REQUEST_URI}index.php/eshop-new-home/ [R,L]
RewriteCond %{REQUEST_URI} ^/eshop/index.php/$
RewriteRule ^(.*)$ %{REQUEST_URI}eshop-new-home/ [R,L]
这些设置在本地主机上正常工作,但在实时网站上不起作用。有什么解决办法吗?
【问题讨论】:
-
你有 apache 或者它的 nginx 还是什么?
-
@Meabed 是的,我的服务器是基于 linux 的,实时运行的是 apache 服务器
-
你是否在 apache 配置中将 AllowOverride 更改为 AllowOverride All?
-
@Meabed :我的网站托管在其他服务器上,因此我无法访问 apache 配置。你告诉我要改变什么?
-
您是否联系过您的托管公司以了解是否启用了 mod_rewrite 并且
AllowOverride设置为All以便您可以在您的网站中使用.htaccess?
标签: .htaccess magento url-rewriting magento-1.7