如何从Magento的URL中删除index.php [英] How do I remove index.php from the URL in Magento
本文介绍了如何从Magento的URL中删除index.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从Magento的URL中删除 index.php .
How can i remove index.php from the URL in Magento.
例如,主页URL为:www.mydomain.com/index.php
For example the home page URL is: www.mydomain.com/index.php
我想展示:www.mydomain.com
Magento管理面板中有什么方法可以做到这一点.
So is there any way to do that in the Magento Admin Panel.
推荐答案
您可以在Magento的管理部分执行以下步骤,删除前端URL中的index.php:
You can remove the index.php in the frontend URLs performing the following steps in Magento's admin section:
在系统->配置->网络->搜索引擎优化中,选择是.
编辑/installdir/.htaccess
并取消注释该行:
RewriteBase /magento/
在我的情况下,Magento所在的子目录称为magento
,因此,如果不同,则将其更改为您的子目录路径.
In my case the subdirectory Magento is in is called magento
, so change it to your subdirectory path if it is different.
这篇关于如何从Magento的URL中删除index.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文