懂技术的来谁能帮改下规则整成伪静态地址 悬赏3元 已结束
主站地址 cceeee.com 地址伪静态化 帮我改下 谢谢
web.config文件里信息是
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="已导入的规则 1">
<match url="^(index|webdir|weblink|article|category|update|archives|top|feedback|link|rssfeed|sitemap)(\/?)$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 2">
<match url="^update\/(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=update&days={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 3">
<match url="^update\/(\d+)-(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=update&days={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 4">
<match url="^archives\/(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=archives&date={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 5">
<match url="^archives\/(\d+)-(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=archives&date={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 6">
<match url="^search\/(name|url|tags|intro)\/(.+)-(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=search&type={R:1}&query={R:2}&page={R:3}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 7">
<match url="^search\/(name|url|tags|intro)\/(.+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=search&type={R:1}&query={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 8">
<match url="^siteinfo\/(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=siteinfo&wid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 9">
<match url="^artinfo\/(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=artinfo&aid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 10">
<match url="^linkinfo\/(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=linkinfo&lid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 11">
<match url="^diypage\/(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=diypage&pid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 12">
<match url="^rssfeed\/(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=rssfeed&cid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 13">
<match url="^sitemap\/(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=sitemap&cid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 14">
<match url="^webdir/(.+)\/(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=webdir&cid={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 15">
<match url="^webdir/(.+)\/(\d+)-(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=webdir&cid={R:2}&page={R:3}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 16">
<match url="^article/(.+)\/(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=article&cid={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 17">
<match url="^article/(.+)\/(\d+)-(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/index.php\?mod=article&cid={R:2}&page={R:3}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
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=$1
RewriteRule ^/update\/(\d+)-(\d+)\.html$ /index.php\?mod=update&days=$1&page=$2
# 数据归档
RewriteRule ^/archives\/(\d+)\.html$ /index.php\?mod=archives&date=$1
RewriteRule ^/archives\/(\d+)-(\d+)\.html$ /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 ^/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=$2
RewriteRule ^/webdir/(.+)\/(\d+)-(\d+)\.html$ /index.php\?mod=webdir&cid=$2&page=$3
RewriteRule ^/article/(.+)\/(\d+)\.html$ /index.php\?mod=article&cid=$2
RewriteRule ^/article/(.+)\/(\d+)-(\d+)\.html$ /index.php\?mod=article&cid=$2&page=$3
# END