如何从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.