加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.htaccess 3.53 KB
一键复制 编辑 原始数据 按行查看 历史
jlping 提交于 2014-09-11 16:36 . xiaoqu
<FilesMatch "\.(bak|inc|lib|sh|tpl|lbi|dwt|htm)$">
order deny,allow
deny from all
</FilesMatch>
RewriteEngine On
ErrorDocument 404 /main.php?act=error
RewriteRule ^error$ /main.php?act=error
RewriteRule ^index-(\d+)-page\.html$ index.php?page=$1 [L]
RewriteRule ^rss$ main.php?act=rrs [L]
RewriteRule ^clear_cache.html$ main.php?act=clear_cache [L]
RewriteRule ^Track-Order.html$ main.php?act=track_order [L]
RewriteRule ^Categories\.html$ main.php?act=categories [L]
RewriteRule ^News\.html$ article_cat.php?id=1 [L]
RewriteRule ^cart$ checkouts\.php\?act=cart [L]
RewriteRule ^checkout$ checkouts\.php\?act=checkout [L]
RewriteRule ^redirect$ checkouts.php\?act=redirect [L]
RewriteRule ^kw-(.*?)\.html$ search.php?kw=$1 [L]
RewriteRule ^kw-(.*?)\.html$ search.php?kw=$1 [L]
RewriteRule ^New-Arrivals-?(\d+)?(-P)?\.html$ main.php?act=new_arrival&page=$1 [L]
RewriteRule ^popular_searches\.html$ main.php?act=popular_searches [L]
RewriteRule ^popular_searches-(\d+)-P\.html$ main\.php?act=popular_searches&page=$1 [L]
RewriteRule ^featured-(\d+)\.html$ feature\.php?fe=$1 [L]
RewriteRule ^F-(\d+)-(\d+)-(.*?)\.html$ feature\.php?fe=$1&page=$2[L]
RewriteRule ^S-(\d+)-(\d+)-(.*?)\.html$ search\.php?kw=$3&page=$1&cat_id=$2 [L]
RewriteRule ^S-(\d+)-(.*?)\.html$ search\.php?kw=$2&page=$1 [L]
RewriteRule ^sh-(\d+)-(.*?)\.html$ search\.php?page=$1&kw=$2 [L]
RewriteRule ^index\.html$ index\.php [L]
RewriteRule ^links.html$ main\.php?act=links [L]
RewriteRule ^user.html$ main\.php?act=user [L]
RewriteRule ^user-order\.html$ main\.php\?act=user&user_act=user_order [L]
RewriteRule ^user-address\.html$ main\.php\?act=user&user_act=user_address [L]
RewriteRule ^user-setting\.html$ main\.php\?act=user&user_act=user_setting [L]
RewriteRule ^user-review\.html$ main\.php\?act=user&user_act=user_review [L]
RewriteRule ^user-order-(\d+)-P\.html$ main\.php\?act=user&user_act=user_order&page=$1 [L]
RewriteRule ^user-login\.html$ main\.php\?act=user_login [L]
RewriteRule ^(.*)-category-(\d+)\.html$ category\.php\?cat_id=$2 [QSA,L]
RewriteRule ^category-(\d+)-(.*)\.html$ category\.php\?cat_id=$1 [QSA,L]
RewriteRule ^(.*)-category-(\d+)-(\d+)\.html$ category\.php\?cat_id=$2&page=$3 [QSA,L]
RewriteRule ^C-(\d+)-(\d+)-L-(\d)+-(\d)+.*\.html$ category\.php\?cat_id=$1&page=$2&mim=$3&max=$4 [QSA,L]
RewriteRule ^C-(\d+)-(\d+).*\.html$ category\.php\?cat_id=$1&page=$2 [QSA,L]
RewriteRule ^C-(\d+).*\.html$ category\.php\?cat_id=$1 [QSA,L]
RewriteRule ^goods-(\d+)(.*)\.html$ goods\.php\?id=$1 [QSA,L]
RewriteRule ^G-(\d+)-.*\.html$ goods\.php\?id=$1 [QSA,L]
RewriteRule ^article-(\d+)(.*)\.html$ main\.php\?act=article&a_id=$1 [QSA,L]
RewriteRule ^A-(\d+)(.*)\.html&no_style$ main\.php\?act=article&a_id=$1&no_style=true [QSA,L]
RewriteRule ^A-(\d+)(.*)\.html$ main\.php\?act=article&a_id=$1 [QSA,L]
RewriteRule ^article_cat-(\d+)(.*)\.html$ main\.php\?act=article_cat&cat_id=$1 [QSA,L]
RewriteRule ^article_cat-(\d+)-(\d+)\.html$ main\.php\?act=article_cat&cat_id=$1&page=$2 [QSA,L]
RewriteRule ^AC-(\d+)-(\d+)-.*\.html$ main\.php\?act=article_cat&cat_id=$1&page=$2 [QSA,L]
RewriteRule ^AC-(\d+)(.*)\.html$ main\.php\?act=article_cat&cat_id=$1 [QSA,L]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化