35dir分类目录伪静态规则文件全网最全.htaccess,httpd.ini,web.config

博客主要介绍了网站不同页面的伪静态规则配置,包括首页、分类浏览、数据归档等。详细给出了.htaccess、httpd.ini和web.config的伪静态规则,通过RewriteRule将不同的URL请求重定向到index.php并传递相应参数,以实现伪静态效果。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

.htaccess伪静态:

BEGIN

RewriteEngine On

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

RewriteRule ^(index|webdir|weblink|article|category|update|archives|top|feedback|link|rssfeed|sitemap)(.html)$ index.php?mod=KaTeX parse error: Expected 'EOF', got '&' at position 2: 1&̲%1 RewriteRule … index.php?mod=$1

最近更新

RewriteRule ^update-(\d+)-(\d+).html$ index.php?mod=update&days=$1&page=KaTeX parse error: Undefined control sequence: \/ at position 22: …iteRule ^update\̲/̲(\d+)-(\d+)\.ht… index.php?mod=update&days=$1&page=KaTeX parse error: Undefined control sequence: \/ at position 22: …iteRule ^update\̲/̲(\d+)/(\d+) index.php?mod=update&days=$1&page=$2

数据归档

RewriteRule ^archives-(\d+)-(\d+).html$ index.php?mod=archives&date=$1&page=KaTeX parse error: Undefined control sequence: \/ at position 24: …eRule ^archives\̲/̲(\d+)-(\d+)\.ht… index.php?mod=archives&date=$1&page=KaTeX parse error: Undefined control sequence: \/ at position 24: …eRule ^archives\̲/̲(\d+)/(\d+) index.php?mod=archives&date=$1&page=$2

站内搜索

RewriteRule ^search-(name|url|tags|intro)-(.*)-([0-9]+).html$ index.php?mod=search&type=$1&query=$2&page=KaTeX parse error: Can't use function '\.' in math mode at position 54: …ntro|tags)-(.*)\̲.̲html index.php?mod=search&type=$1&query=$2

RewriteRule ^search/(name|url|tags|intro)-(.+)-([0-9]+).html$ index.php?mod=search&type=$1&query=$2&page=KaTeX parse error: Undefined control sequence: \/ at position 22: …iteRule ^search\̲/̲(name|url|tags|… index.php?mod=search&type=$1&query=$2

RewriteRule ^search/(name|url|tags|intro)/(.+)/(\d+)$ index.php?mod=search&type=$1&query=$2&page=KaTeX parse error: Undefined control sequence: \/ at position 22: …iteRule ^search\̲/̲(name|url|tags|… index.php?mod=search&type=$1&query=$2

站点详细

RewriteRule ^webs-(\d+).html$ index.php?mod=siteinfo&wid=KaTeX parse error: Undefined control sequence: \/ at position 20: …writeRule ^webs\̲/̲(.+)\.html index.php?mod=siteinfo&wid=KaTeX parse error: Undefined control sequence: \/ at position 20: …writeRule ^webs\̲/̲(\d+) index.php?mod=siteinfo&wid=$1

文章详细

RewriteRule ^artinfo-(\d+).html$ index.php?mod=artinfo&aid=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^artinfo\̲/̲(\d+)\.html index.php?mod=artinfo&aid=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^artinfo\̲/̲(\d+) index.php?mod=artinfo&aid=$1

链接详细

RewriteRule ^linkinfo-(\d+).html$ index.php?mod=linkinfo&lid=KaTeX parse error: Undefined control sequence: \/ at position 24: …eRule ^linkinfo\̲/̲(\d+)\.html index.php?mod=linkinfo&lid=KaTeX parse error: Undefined control sequence: \/ at position 24: …eRule ^linkinfo\̲/̲(\d+) index.php?mod=linkinfo&lid=$1

单页

RewriteRule ^diypage-(\d+).html$ index.php?mod=diypage&pid=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^diypage\̲/̲(\d+)\.html index.php?mod=diypage&pid=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^diypage\̲/̲(\d+) index.php?mod=diypage&pid=$1

RSS

RewriteRule ^rssfeed-(.+)-(\d+).html$ index.php?mod=rssfeed&type=$1&cid=KaTeX parse error: Can't use function '\.' in math mode at position 28: …e ^rssfeed-(.+)\̲.̲html index.php?mod=rssfeed&type=$1&cid=2RewriteRulerss.xml2 RewriteRule ^rss.xml2RewriteRulerss.xml index.php?mod=rssfeed&type=$1&cid=2RewriteRulerss.html2 RewriteRule ^rss.html2RewriteRulerss.html index.php?mod=rssfeed&type=$1&cid=2RewriteRulerss/2 RewriteRule ^rss/2RewriteRulerss/ index.php?mod=rssfeed&type=$1&cid=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^rssfeed\̲/̲(.+)/ index.php?mod=rssfeed&type=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^rssfeed\̲/̲(.+)/(\d+)\.htm… index.php?mod=rssfeed&type=$1&cid=$2

RewriteRule ^rssfeed/(.+)$ index.php?mod=rssfeed&type=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^rssfeed\̲/̲(.+)/(\d+) index.php?mod=rssfeed&type=$1&cid=$2

SiteMap

RewriteRule ^sitemap-(.+).html$ index.php?mod=sitemap&cid=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^sitemap\̲/̲(\d+)\/ index.php?mod=sitemap&cid=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^sitemap\̲/̲(\d+) index.php?mod=sitemap&cid=$1

分类目录

RewriteRule ^webdir-(\d+)-(\d+).html$ index.php?mod=webdir&cid=$1&page=KaTeX parse error: Undefined control sequence: \/ at position 22: …iteRule ^webdir\̲/̲(\d+)-(\d+)\.ht… index.php?mod=webdir&cid=$1&page=KaTeX parse error: Undefined control sequence: \/ at position 22: …iteRule ^webdir\̲/̲(\d+)/(\d+) index.php?mod=webdir&cid=$1&page=$1

RewriteRule ^article-(.+)-(\d+)-(\d+).html$ index.php?mod=article&cid=$2&page=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^article\̲/̲(.+)\/(\d+)-(\d… index.php?mod=article&cid=$2&page=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^article\̲/̲(.+)\/(\d+)/(\d… index.php?mod=article&cid=$2&page=$3

httpd.ini伪静态:

[ISAPI_Rewrite]

BEGIN

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

RewriteRule ^/(index|webdir|weblink|article|category|update|archives|top|feedback|link|rssfeed|sitemap)(/?)$ /index.php?mod=$1

最近更新

RewriteRule ^/update/(\d+).html$ /index.php?mod=update&days=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^/update\̲/̲(\d+)-(\d+)\.ht… /index.php?mod=update&days=$1&page=$2

数据归档

RewriteRule ^/archives/(\d+).html$ /index.php?mod=archives&date=KaTeX parse error: Undefined control sequence: \/ at position 25: …Rule ^/archives\̲/̲(\d+)-(\d+)\.ht… /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=KaTeX parse error: Undefined control sequence: \/ at position 23: …teRule ^/search\̲/̲(name|url|tags|… /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+).html$ /index.php?mod=diypage&pid=$1

RSS

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

SiteMap

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

分类目录

RewriteRule ^/webdir/(.+)/(\d+).html$ /index.php?mod=webdir&cid=KaTeX parse error: Undefined control sequence: \/ at position 28: …e ^/webdir/(.+)\̲/̲(\d+)-(\d+)\.ht… /index.php?mod=webdir&cid=$2&page=KaTeX parse error: Undefined control sequence: \/ at position 29: … ^/article/(.+)\̲/̲(\d+)\.html /index.php?mod=article&cid=KaTeX parse error: Undefined control sequence: \/ at position 29: … ^/article/(.+)\̲/̲(\d+)-(\d+)\.ht… /index.php?mod=article&cid=$2&page=$3

END

web.config伪静态:

<?xml version="1.0" encoding="UTF-8"?>
   <rule name="search_1">
      <match url="^(.*/)*search-(name|url|tags|intro)-(.+)-([0-9]+)\.html\?*(.*)$"/>
      <action type="Rewrite" url="{R:1}/index.php\?mod=search&amp;type={R:2}&amp;query={R:3}&amp;page={R:4}&amp;{R:5}"/>
    </rule>
    </rule>
    </rule>


   

  </rules>
</rewrite>

</system.webServer>

程序介绍:35dir网站分类目录程序采用PHP+MYSQL开发,该版本为V2.2商业版,官方售价380元。网站用户支持QQ登录,网站系统支持伪静态。该程序适合用作网站分类目录、网站收录、网址导航等。程序不含数据,截图来自官方站点,程序与截图中除了广告以外基本一样。 安装说明:首次安装 http://domain/index.php 自动转跳安装步骤 管理后台访问地址 http://domain/admin/login.php 为了安全,可以随便修改管理后台 admin 文件夹名称, 访问路径admin换成你改成的文件夹名即可 =============================================================== #2012-12-01 更新获取广告函数,详细看说明 修复会员后台收藏站点的收藏次数显示 修复程序跨脚本攻击漏洞的安全问题 #2012-11-19 更新后台管理:会员提交文章审核选择设置:1需要审核 2关闭审核 会员发布链接交换设置:1已审核站点才能发布 2未审核站点也可以发布 #2012-11-18 更新后台管理-站点的收录时间可自由设置 修改用户中心更新站点数据的AJAX方法 #2012-11-11 修改百度权重获取函数 修复搜狗PR获取BUG 增加伪静态选择方式,网站信息页面url如: #2012-11-02 修复后台图片下载; 增加百度快照函数getKuaiZhao($url) 更新会员中心站点更新操作,后台增加站点审核方式选择(自动和人工审核); 收费站点和普通站点自动更新数据时间可以后台不同设置 后台可以选择站点收录方式,手工收录,或者对方挂上本站友链,点击自动收录 #2012-10-25 伪静态规则修复 更新HTML编辑器; 修复IP地址错误显示; 更新头部欢迎与登陆条浮动显示; =============================================================== 技术支持 www.47751.com 技术QQ:1250119556
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值