搜外网>搜外问答>问答页面

懂技术的来谁能帮改下规则整成伪静态地址 悬赏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

追加问题
    5 人参与回答
最佳回答

lz用的是35dir吗?

这就是伪静态规则啊?

崔家大院
崔家大院 · 网站诊断、建站、快速排名

这个需要技术解决  找个 二次开发的

OSEO|冷风
OSEO| · 无一技之长,难显真善美。v:oseocc

这样无法改啊

用的什么环境,什么程序,知道站什么情况,

这个很难,最好找专业技术解决

祖传优化
祖传优化 · 从业互联网8年:SEO/SEM/媒体广告,免费咨询合作【微信:13959853105】

你这样我们很难帮你改的,你这个是什么文件?还得了解你的网站结构的。不是说光看代码就能搞,每个网站代码逻辑都不一样的。

你可以加我QQ,我可以先帮你看看。


如果您对我的回答满意,望采纳为【最佳回答】更多SEO方面的问题及需求请点击我的名称通过公告牌联系我,感谢您的信任!