站长笔记
分享生活百科,建站知识!

35dir目录分类商业版源码下载,附apache伪静态规则、nginx伪静态规则代码

35dir目录分类商业版源码是一个古老的网址大全网站程序!虽然开发者已停止更新了,但还是有很多站长在使用这套程序建立网站。小编在淘宝上花了50元购买了35dir目录分类商业版源码,是经过二次开发优化。今天这篇文章是与大家分享下35dir目录分类商业版源码、apache伪静态规则、nginx伪静态规则代码:

35dir目录分类商业版 – 下载地址

● Apache伪静态规则 (网站URL链接结构设置选择”文件型”)

RewriteEngine On
RewriteBase /
# BEGIN
# 首页、分类浏览、数据归档、最近更新、排行榜、意见反馈
RewriteRule ^(index|city|webdir|weblink|article|category|update|archives|top|feedback|link|rssfeed|sitemap)(\/?).html$ index.php\?mod=$1
# 最近更新
RewriteRule ^update-(\d+)-1.html$ index.php\?mod=update&days=$1
RewriteRule ^update-(\d+)-(\d+).html$ index.php\?mod=update&days=$1&page=$2
# 数据归档
RewriteRule ^archives-(\d+)-1.html$ index.php\?mod=archives&date=$1
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-0-(\d+).html$ index.php\?mod=archives&page=$1
# 站内搜索
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 ^siteinfo-(\d+).html$ index.php\?mod=siteinfo&wid=$1
# 文章详细
RewriteRule ^artinfo-(\d+).html$ index.php\?mod=artinfo&aid=$1
# 链接详细
RewriteRule ^linkinfo-(\d+).html$ index.php\?mod=linkinfo&lid=$1
# 单页
RewriteRule ^diypage\/(\d+)$ index.php\?mod=diypage&pid=$1
# RSS
RewriteRule ^rssfeed\/(\d+)$ index.php\?mod=rssfeed&cid=$1
# SiteMap
RewriteRule ^sitemap\/(\d+).html$ index.php\?mod=sitemap&cid=$1
RewriteRule ^sitemap.xml$ index.php\?mod=sitemap
# 分类目录
RewriteRule ^webdir-(.*)-(\d+)-1.html$ index.php\?mod=webdir&cid=$2
RewriteRule ^webdir-(.*)-(\d+)-(\d+).html$ index.php\?mod=webdir&cid=$2&page=$3
RewriteRule ^article-(.*)-(.+)-(\d+).html$ index.php\?mod=article&cid=$3
RewriteRule ^article-(.*)-(.+)-(\d+)-(\d+).html$ index.php\?mod=article&cid=$3&page=$4

● nginx伪静态规则

rewrite ^/(index|article|webdir|category|update|archives|top|feedback|weblink|rssfeed|sitemap)(/?)$ /index.php?mod=$1 last;
rewrite ^/update/(\d+).html$ /index.php?mod=update&days=$1 last;
rewrite ^/update/(\d+)-(\d+).html$ /index.php?mod=update&days=$1&page=$2 last;
rewrite ^/archives/(\d+).html$ /index.php?mod=archives&date=$1 last;
rewrite ^/archives/(\d+)-(\d+).html$ /index.php?mod=archives&date=$1&page=$2 last;
rewrite ^/webdir/(.*)/(\d+)-1.html$ /index.php?mod=webdir&cid=$2 last;
rewrite ^/webdir/(.*)/(\d+)-(\d+).html$ /index.php?mod=webdir&cid=$2&page=$3 last;
rewrite ^/search/(name|url|tags|intro|pr|br)/(.+)-(\d+).html$ /index.php?mod=search&type=$1&query=$2&page=$3 last;
rewrite ^/search/(name|url|tags|intro|pr|br)/(.+).html$ /index.php?mod=search&type=$1&query=$2 last;
rewrite ^/siteinfo/(\d+).html$ /index.php?mod=siteinfo&wid=$1 last;
rewrite ^/artinfo/(\d+).html$ /index.php?mod=artinfo&aid=$1 last;
rewrite ^/linkinfo/(\d+).html$ /index.php?mod=linkinfo&lid=$1 last;
rewrite ^/diypage/(\d+).html$ /index.php?mod=diypage&pid=$1 last;
rewrite ^/rssfeed/(\d+).html$ /index.php?mod=rssfeed&cid=$1 last;
rewrite ^/sitemap/(\d+).html$ /index.php?mod=sitemap&cid=$1 last;
rewrite ^/(.+)/(\d+)-(\d+).html$ /index.php?mod=directory&cid=$2&page=$3 last;
rewrite ^/article/(.*)/(\d+)-1.html$ /index.php?mod=article&cid=$2 last;
rewrite ^/article/(.*)/(\d+)-(\d+).html$ /index.php?mod=article&cid$2&page=$3 last;

编者语:

如果上面的Apache伪静态规则 (网站URL链接结构设置选择”文件型”)无法使用,可以尝试下面这个Apache伪静态规则,只需要用代码重新建立一个.htaccess文件覆盖根目录的该文件即可:

# 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+)\.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

文章链接https://www.080210.com/38858.html
版权声明:文章由本站原创或网友分享,禁止转载!发布此文是出于传递更多信息之目的,若有来源标注错误或侵犯了您的合法权益,请与我们(A080210@qq.com)联系,我们将及时更正、删除,谢谢。
温馨提示本站信息来自互联网或网友分享,请大家查阅时,谨慎选择、自辩真伪,自负责任。

支持快讯、专题、百度收录推送、人机验证、多级分类筛选器,适用于垂直站点、科技博客、个人站,扁平化设计、简洁白色、超多功能配置、会员中心、直达链接、文章图片弹窗、自动缩略图等...