功能测试

Magento去掉URL中的index.php

发布-zhushican | 查看- | 发表时间-2013-3-13

 1.修改APACHE2中的配置文件。

 
DocumentRoot /home/magento/
 
<Directory />
 
Options FollowSymLinks
 
AllowOverride  All    这里修改成All
 
</Directory>
 
<Directory /home/magento/>
 
Options Indexes FollowSymLinks MultiViews
 
AllowOverride All     这里修改成All
 
  Order allow,deny
 
allow from all
 
</Directory>
 
2.启用apache2重写模块。
 
命令:#a2enmod rewrite
 
3.登录Magento后台系统,系统(System) => 配置(Configuration) => 网站(Web)=> 搜索引擎优化(Search Engines Optimization)=> 服务器重写(Use Web Server Rewrites),然后选择” yes” 即可(记得刷新Magento缓存).
 
4.修改.htaccess文件的配置
 
确保为:
 
############################################
 
## enable rewrites
 
Options +FollowSymLinks
 
RewriteEngine on
 
############################################
 
## you can put here your magento root folder
 
## path relative to web root
 
RewriteBase /
 
/etc/init.d/apache2 restart
 
到前台刷新就可以访问了。
或许你还对下面的文章感兴趣

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最新文章

最新文章

完全随机文章

最近评论
访客留言
Copyright 2006-2013 www.fangpaikongjian.biz. Some Rights Reserved. | 仿牌空间 - 仿牌主机