.htaccess 将magento index.php重定向到http://mysite.com/

.htaccess 将magento index.php重定向到http://mysite.com/,.htaccess,magento,magento-1.7,.htaccess,Magento,Magento 1.7,我已经做完了 配置>Web>使用Web服务器重写并更改为“是” 当我在htaccess Redirect 301/index.php中设置时,给出错误“加载页面的问题” 我只想将mysite.com/index.php重定向到magento中的根url mysite.com/ 这可能吗 请帮助。您可以尝试修改重写规则: # remove index.php RewriteCond %{THE_REQUEST} /index\.php [NC] RewriteRule ^(.*?)index\.p

我已经做完了

配置>Web>使用Web服务器重写并更改为“是”

当我在htaccess Redirect 301/index.php中设置时,给出错误“加载页面的问题”

我只想将mysite.com/index.php重定向到magento中的根url mysite.com/

这可能吗


请帮助。

您可以尝试修改重写规则:

# remove index.php
RewriteCond %{THE_REQUEST} /index\.php [NC]
RewriteRule ^(.*?)index\.php$ /$1 [L,R=302,NC,NE]
还要确保这是第一条规则