陈忠岩个人博客-一个生活在这个现实社会的小角色在讲述他的故事!

当前位置:首页 - 教程 - 正文

君子好学,自强不息!

最新版35dir分类目录的伪静态规则

2017-12-25 | 教程 | 陈忠岩 | 326°c
A+ A-

# BEGIN

RewriteEngine On

# 首页、分类浏览、数据归档、最近更新、排行榜、意见反馈

RewriteRule ^(index|webdir|weblink|article|category|update|archives|top|feedback|link|

rssfeed|sitemap)(\.html)$ index.php\?mod=$1&%1

RewriteRule ^(index|webdir|weblink|article|category|update|archives|top|feedback|link|

rssfeed|sitemap)(\/?)$ index.php\?mod=$1

# 最近更新

RewriteRule ^update-(\d+)-(\d+)\.html$ index.php\?mod=update&days=$1&page=$2

RewriteRule ^update\/(\d+)-(\d+)\.html$ index.php\?mod=update&days=$1&page=$2

RewriteRule ^update\/(\d+)/(\d+)$ index.php\?mod=update&days=$1&page=$2


# 数据归档

RewriteRule ^archives-(\d+)-(\d+)\.html$ index.php\?mod=archives&date=$1&page=$2

RewriteRule ^archives\/(\d+)-(\d+)\.html$ index.php\?mod=archives&date=$1&page=$2

RewriteRule ^archives\/(\d+)/(\d+)$ index.php\?mod=archives&date=$1&page=$2


# 站内搜索

RewriteRule ^search-(name|url|tags|intro)-(.*)-(\d+)\.html$  index.php\?mod=search&type=

$1&query=$2&page=$3

RewriteRule ^search-(name|url|tags|intro)-(.*)\.html$  index.php\?mod=search&type=

$1&query=$2


RewriteRule ^search\/(name|url|tags|intro)\/(.*)-(\d+)\.html$  index.php\?mod=search&type=

$1&query=$2&page=$3

RewriteRule ^search\/(name|url|tags|intro)\/(.*)\.html$  index.php\?mod=search&type=

$1&query=$2


RewriteRule ^search\/(name|url|tags|intro)\/(.+)/(\d+)$ index.php\?mod=search&type=

$1&query=$2&page=$3

RewriteRule ^search\/(name|url|tags|intro)\/(.+)$ index.php\?mod=search&type=$1&query=$2


# 站点详细

RewriteRule ^siteinfo-(\d+)\.html$ index.php\?mod=siteinfo&wid=$1

RewriteRule ^siteinfo\/(\d+)\.html$ index.php\?mod=siteinfo&wid=$1

RewriteRule ^siteinfo\/(\d+)$ index.php\?mod=siteinfo&wid=$1


# 文章详细

RewriteRule ^artinfo-(\d+)\.html$ index.php\?mod=artinfo&aid=$1

RewriteRule ^artinfo\/(\d+)\.html$ index.php\?mod=artinfo&aid=$1

RewriteRule ^artinfo\/(\d+)$ index.php\?mod=artinfo&aid=$1


# 链接详细

RewriteRule ^linkinfo-(\d+)\.html$ index.php\?mod=linkinfo&lid=$1

RewriteRule ^linkinfo\/(\d+)\.html$ index.php\?mod=linkinfo&lid=$1

RewriteRule ^linkinfo\/(\d+)$ index.php\?mod=linkinfo&lid=$1


# 单页

RewriteRule ^diypage-(\d+)\.html$ index.php\?mod=diypage&pid=$1

RewriteRule ^diypage\/(\d+)$ index.php\?mod=diypage&pid=$1


# RSS

RewriteRule ^rssfeed-(.+)-(\d+)\.html$ index.php\?mod=rssfeed&type=$1&cid=$2

RewriteRule ^rssfeed-(.+)\.html$ index.php\?mod=rssfeed&type=$1&cid=$2


RewriteRule ^rssfeed\/(.+)/$ index.php\?mod=rssfeed&type=$1

RewriteRule ^rssfeed\/(.+)/(\d+)\.html$ index.php\?mod=rssfeed&type=$1&cid=$2


RewriteRule ^rssfeed\/(.+)$ index.php\?mod=rssfeed&type=$1

RewriteRule ^rssfeed\/(.+)/(\d+)$ index.php\?mod=rssfeed&type=$1&cid=$2


# SiteMap

RewriteRule ^sitemap-(.+)\.html$ index.php\?mod=sitemap&cid=$1

RewriteRule ^sitemap\/(\d+)\/$ index.php\?mod=sitemap&cid=$1

RewriteRule ^sitemap\/(\d+)$ index.php\?mod=sitemap&cid=$1


# 分类目录

RewriteRule ^webdir-(.+)-(\d+)-(\d+)\.html$ index.php\?mod=webdir&cid=$2&page=$3

RewriteRule ^webdir\/(.+)\/(\d+)-(\d+)\.html$ index.php\?mod=webdir&cid=$2&page=$3

RewriteRule ^webdir\/(.+)\/(\d+)/(\d+)$ index.php\?mod=webdir&cid=$2&page=$3


RewriteRule ^article-(.+)-(\d+)-(\d+)\.html$ index.php\?mod=article&cid=$2&page=$3

RewriteRule ^article\/(.+)\/(\d+)-(\d+)\.html$ index.php\?mod=article&cid=$2&page=$3

RewriteRule ^article\/(.+)\/(\d+)/(\d+)$ index.php\?mod=article&cid=$2&page=$3


# END


本文来源:陈忠岩个人博客

本文地址:http://www.chenzhongyan.com/Course/107.html

关注我们:微信搜索“chen_zhongyan”添加我为好友

版权声明:如无特别注明,转载请注明本文地址!

发表评论

必填

选填

选填

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


你好,朋友
真是美好的一天!
  • 陈忠岩个人博客
  • 巴彦生活网
  • 好DJ舞曲网
  • 订阅本站的 RSS 2.0 新闻聚合

广而告之

本站出售广告位及友情链接,友情链接每个月两块钱,广告位全部十元一个,好位置先到先得!机不可失,失不再来!有意者联系QQ253716433