Magento从URL中删除index.php

时间:2014-02-18 15:54:00

标签: magento

我在一个Magento中安装了多个网站,对于一个网站,我有一个完整的视图商店(www.example.com)和移动视图商店(www.example.com/mobile)。我从完整商店取下了index.php,但不知何故,它无法从移动商店取消,我仔细检查,(1)使用Web服务器重写设置为是(2)使用前端的安全URL为是( 3).htacess重写引擎和RewriteBase /。我多次清除了Magento缓存,我甚至重新编制了索引。为什么index.php还在那里?

这是.htacess文件的一部分。

## enable rewrites
    Options +FollowSymLinks
    RewriteEngine on
############################################
## you can put here your magento root folder
## path relative to web root
   RewriteBase / 

3 个答案:

答案 0 :(得分:0)

从url

中删除index.php的步骤很少
Step1:Admin>System > configuration>General>WEb>Search Engine optimization 

使用Web服务器重写启用是 同时启用apache的mod_write

答案 1 :(得分:0)

按照以下步骤从Magento中的URL中删除index.php

Step 1:
* Goto to your site root folder and you can find the htaccess file there.Open it on text editor and find the line #Rewrite Base/magento.
* Just replace it with Rewrite Base/

Step 2:
* Then goto your admin panel and enable the Rewrites(set yes for Use Web Server Rewrites).
* You can find it at System->Configuration->Web->Search Engine Optimization.

Step 3:
* Then goto Cache management page (system cache management ) and refresh your cache and refresh to check the site.

答案 2 :(得分:0)

相关问题