1G全能免费空间 | 2GB免费全能空间 | 1G免费全能空间 | 免费试用云服务器 | 国内1G免费空间 | 免费空间 | 免费空间申请
您的位置:首页 > 免费教程

常用伪静态规则-ecshop

作者:免费空间 发布时间:2018-10-27 [手机版]

    order deny,allow
    deny from all

RewriteEngine On
#RewriteBase /

# 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-type([^-]+).xml$       feed.php?type=$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&keywords=$3 [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]

RewriteRule ^exchange-id([0-9]+)(.*).html$                             exchange.php?id=$1&act=view [QSA,L]
RewriteRule ^exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$ exchange.php?cat_id=$1&integral_min=$2&integral_max=$3&page=$4&sort=$5&order=$6 [QSA,L]
RewriteRule ^exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$                         exchange.php?cat_id=$1&page=$2&sort=$3&order=$4 [QSA,L]
RewriteRule ^exchange-([0-9]+)-([0-9]+)(.*).html$                                          exchange.php?cat_id=$1&page=$2  [QSA,L]
RewriteRule ^exchange-([0-9]+)(.*).html$                                                   exchange.php?cat_id=$1  [QSA,L]


相关推荐
免费空间声明:
(一) 由于各方面情况的调整与变化,本网所提供的考试信息仅供参考,敬请以权威部门公布的正式信息为准。
(二) 本网注明来源为其他媒体的稿件均为转载稿,免费转载出于非商业性学习目的,版权归原作者所有。如有内容、版权等问题请在30日内与本网联系。联系方式:邮件 jiansou123@126.com
最近更新
-->
网站地图 | XML地图 | 手机版
版权所有 © 2005-2022 www.128sj.com 免费空间 All Rights Reserved
本网站所有信息全是来源于互联网,如有侵权请来电咨询! 粤ICP备16040413号-1