35dir分类目录网站的apache伪静态规则
35dir分类目录网站的nginx伪静态规则,比如本站用的nginx伪静态规则就是下面的,如果是其他的35dir源码修过的,可能要修改一下下面的伪静态规则即可,本站在用的哦,不会出现用不了的问题。把下面的代码放到根目录的.htaccess文件就可以了。
# BEGIN
RewriteEngine On
# 首页、分类浏览、数据归档、最近更新、排行榜、意见反馈
RewriteRule ^(index|webdir|article|category|update|vipmulu|webthumb|archives|feedback|link|rssfeed|sitemap)(\.html)$ index.php\?mod=$1&%1
# 最近更新
RewriteRule ^update-(\d+)-(\d+)\.html$ index.php\?mod=update&days=$1&page=$2
# 快审目录
RewriteRule ^vipmulu-(\d+)-(\d+)\.html$ index.php\?mod=vipmulu&days=$1&page=$2
# 数据归档
RewriteRule ^archives-(\d+)-(\d+)\.html$ index.php\?mod=archives&date=$1&page=$2
# 站内搜索
RewriteRule ^search-(name|url|tags|intro|br|pr|sr)-(.*)-(\d+)\.html$ index.php\?mod=search&type=$1&query=$2&page=$3
RewriteRule ^search-(name|url|tags|intro|br|pr|sr)-(.*)\.html$ index.php\?mod=search&type=$1&query=$2
# 站点详细
RewriteRule ^site/(.+)\.html$ index.php\?mod=siteinfo&wid=$1
# 文章详细
RewriteRule ^artinfo-(\d+)\.html$ index.php\?mod=artinfo&aid=$1
# 单页
RewriteRule ^diypage-(\d+)\.html$ index.php\?mod=diypage&pid=$1
# RSS
RewriteRule ^rssfeed-(.+)-(\d+)\.xml$ index.php\?mod=rssfeed&type=$1&cid=$2
RewriteRule ^rssfeed-(.+)\.xml$ index.php\?mod=rssfeed&type=$1&cid=$2
# SiteMap
RewriteRule ^sitemap.xml$ index.php\?mod=sitemap
# 分类目录
RewriteRule ^webdir-(.+)-(\d+)-(\d+)\.html$ index.php\?mod=webdir&cid=$2&page=$3
RewriteRule ^webthumb-(.+)-(\d+)-(\d+)\.html$ index.php\?mod=webthumb&cid=$2&page=$3
RewriteRule ^article-(.+)-(\d+)-(\d+)\.html$ index.php\?mod=article&cid=$2&page=$3
#qr
RewriteRule ^qr/(.*)_(.*)_(.*)_http:/(.*)_cdn\.png$ qr/index.php?m=$1&e=$2&p=$3&url=http://$4 [L]
RewriteRule ^qr/(.*)_(.*)_(.*)_(.*)_cdn\.png$ qr/index.php?m=$1&e=$2&p=$3&url=$4 [L]
# END
下一篇: 35dir分类目录程序标签使用大全