|
首页 ::
Magento开发 ::
Magento二次开发 ::
Magento的.htaccess伪静态设置教程
 |
 |
 |
|
Magento的.htaccess伪静态设置教程 作者: Magento | 2013-10-15 阅读次数:2113 关键字:杭州magento最完善的二次开发
在Hostours您可以为您的Magento开启伪静态,详细步骤如下:
1.用DW新建一个文本文件名为htaccess.txt
2.在文件中保存如下代码
<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag short_open_tag on
</IfModule>
DirectoryIndex index.php
RewriteEngine on
#RewriteBase /
RewriteCond %{REQUEST_URI} !^/media/
RewriteCond %{REQUEST_URI} !^/skin/
RewriteCond %{REQUEST_URI} !^/js/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
3.上传该文件到Magento安装目录下,比如网站根目录public_html/下,并更名为.htaccess
至此伪静态文件设置完毕,你可以在后台设置中开启伪静态。
Magento二次开发的相关新闻
更早的新闻
|
|
 |
 |
 |
|