ecshop伪静态.htaccess的规则代码
发布:smiling 来源: PHP粉丝网 添加日期:2014-06-14 13:26:04 浏览: 评论:0
.htaccess的rewrite代码如下:
- RewriteEngine On
- # direct one-word access
- RewriteRule ^index\.html$ index\.php [L]
- RewriteRule ^category$ index\.php [L]
- # access any object by its numeric identifier
- RewriteRule ^feed-c([0-9]+)\.xml$ feed\.php\?cat=$1 [L]
- RewriteRule ^feed-b([0-9]+)\.xml$ feed\.php\?brand=$1 [L]
- RewriteRule ^feed\.xml$ feed\.php [L]
- RewriteRule ^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 [QSA,L]
- RewriteRule ^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$ category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5 [QSA,L]
- RewriteRule ^category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&brand=$2&page=$3&sort=$4&order=$5 [QSA,L]
- RewriteRule ^category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ category\.php\?id=$1&brand=$2&page=$3 [QSA,L]
- RewriteRule ^category-([0-9]+)-b([0-9]+)(.*)\.html$ category\.php\?id=$1&brand=$2 [QSA,L]
- RewriteRule ^category-([0-9]+)(.*)\.html$ category\.php\?id=$1 [QSA,L]
- RewriteRule ^goods-([0-9]+)(.*)\.html$ goods\.php\?id=$1 [QSA,L]
- RewriteRule ^article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ article_cat\.php\?id=$1&page=$2&sort=$3&order=$4 [QSA,L]
- RewriteRule ^article_cat-([0-9]+)-([0-9]+)(.*)\.html$ article_cat\.php\?id=$1&page=$2 [QSA,L]
- RewriteRule ^article_cat-([0-9]+)(.*)\.html$ article_cat\.php\?id=$1 [QSA,L]
- RewriteRule ^article-([0-9]+)(.*)\.html$ article\.php\?id=$1 [QSA,L]
- RewriteRule ^brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html brand\.php\?id=$1&cat=$2&page=$3&sort=$4&order=$5 [QSA,L]
- RewriteRule ^brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html brand\.php\?id=$1&cat=$2&page=$3 [QSA,L]
- RewriteRule ^brand-([0-9]+)-c([0-9]+)(.*)\.html brand\.php\?id=$1&cat=$2 [QSA,L]
- RewriteRule ^brand-([0-9]+)(.*)\.html brand\.php\?id=$1 [QSA,L]
- RewriteRule ^tag-(.*)\.html search\.php\?keywords=$1 [QSA,L]
- RewriteRule ^snatch-([0-9]+)\.html$ snatch\.php\?id=$1 [QSA,L]
- RewriteRule ^group_buy-([0-9]+)\.html$ group_buy\.php\?act=view&id=$1 [QSA,L]
- RewriteRule ^auction-([0-9]+)\.html$ auction\.php\?act=view&id=$1 [QSA,L]
把以上代码放到记事本里,然后上传到你的ecshop空间里的wwwroot根目录下,然后改记事本的名字为:.htaccess,之后你在ecshop商城后台设置一下伪静态.
Tags: ecshop伪静态 htaccess规则
- 上一篇:Ecshop邮件模板无法修改的解决办法
- 下一篇:如何给ECSHOP文章内容加上分页
相关文章
- ·windows系统iis运行环境下ecshop商城设置伪静态的方法(2015-09-28)
- ·ECshop在线客服代码添加操作(2013-11-15)
- ·ecshop2.7.0商品分类显示数量(2013-11-15)
- ·Ecshop与jQuery冲突最简单的解决办法! (2013-11-15)
- ·ecshop不同的文章分类使用不同的模板的方法(2013-11-15)
- ·使用.htaccess来实现ecshop 301重定向的方法(伪静态可行)(2013-11-15)
- ·Ecshop-如何实现会员注册就是vip或注册就是企业用户(2013-11-15)
- ·本机安装Ecshop时出现创建管理员帐号失败(2013-11-30)
- ·ecshop分类树显示所有分类的解决方法(2013-12-02)
- ·ecshop后台登录超时session过期的解决办法(2013-12-07)
- ·PHP中递归函数返回值使用介绍(ecshop无限分类)(2014-01-03)
- ·Ecshop系统添加免运费赠品后购物车变为收取运费解决办法(2014-01-06)
- ·将ecshop相对地址改成绝对地址的方法(2014-01-10)
- ·ECShop——回到顶部(2014-01-10)
- ·ECShop 模板修改(2014-01-10)
- ·Ecshop与jQuery冲突最简单的解决办法(2014-06-13)
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)