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

.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= 2 R e w r i t e R u l e r s s . x m l 2 RewriteRule ^rss.xml 2RewriteRulerss.xml index.php?mod=rssfeed&type=$1&cid= 2 R e w r i t e R u l e r s s . h t m l 2 RewriteRule ^rss.html 2RewriteRulerss.html index.php?mod=rssfeed&type=$1&cid= 2 R e w r i t e R u l e r s s / 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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值