2011-12-09 76 views
1

我不希望我的商店中的我的网址包含index.php。我所有的产品页面都可以通过添加index.php来访问,如果没有,我不希望从url中删除index.php。Magento .htaccess从Store Url中删除index.php

例如,这两个网址显示相同的内容,但我只希望用户曾经被定向到第二网址:
http://www.pudu.com.au/index.php/outback-mens-denim-cargo-shorts.html & http://www.pudu.com.au/outback-mens-denim-cargo-shorts.html

同样在的顶级内容现场:
http://www.pudu.com.au/index.php &
http://www.pudu.com.au/

+0

Downvoted for“这个问题没有显示任何研究工作”。 – clockworkgeek

+0

我们什么时候成为Magento帮助台? –

回答

3

法师nto根据配置设置将系统端点(index.php)添加到URL路径。在管理员中,导航到系统>配置。在“Web”部分中,打开“搜索引擎优化”组,并将“使用Web服务器重写”设置为“是”。您需要刷新配置缓存,然后重写索引URL重写。

+0

确保Magento提供的.htaccess文件也位于Magento根文件夹中。它包含了其他的url重写代码。 –