2014-02-18 86 views
0

我在一个Magento中安装了多个网站,对于一个网站,我有一个全视图存储(www.example.com)和移动视图存储(www.example.com/mobile) 。 (1)使用Web服务器重写设置为是(2)在前端使用安全URL是()使用Web服务器重写设置为是(2) 3).htacess重写引擎on和RewriteBase /。我清理了Magento缓存几次,甚至重新编制索引。为什么index.php仍然存在?Magento从URL删除index.php

这是.htacess文件的一部分。

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

看到代码http://cmsblogheart.wordpress.com/2014/02/27/how-to-remove-index-php- form-url-in-magento/ –

+0

[我如何从Magento中的URL中删除index.php](http://stackoverflow.com/questions/16938860/how-do-i-remove-index-php -from-the-url-in-magento) – LuFFy

回答

0

有几个步骤,以删除URL的index.php

Step1:Admin>System > configuration>General>WEb>Search Engine optimization 

使用服务器网址重写,使为yes 也使阿帕奇

+0

感谢您的回复,我做了所有这些,但没有成功。 – user3302501

+0

如何启用mod-write的apache?我应该联系网络主机吗? – user3302501

+0

是...请联系网站主机 –

0

的mod_write按照下面的步骤删除index.php来自Magento中的网址

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. 
+0

感谢您的回复!做了所有这些步骤几次,不工作.. – user3302501

+0

从var.and从您的后端删除缓存文件夹转到系统 - >缓存mangment刷新cache.my解决方案应该工作,我曾多次使用。 –

+0

从Magento清除缓存和刷新的缓存,仍然没有工作....它是如此的有线.. – user3302501