.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&type={R:2}&query={R:3}&page={R:4}&{R:5}"/>
</rule>
</rule>
</rule>
</rules>
</rewrite>
</system.webServer>