帝国cms 如何让tag伪静态配置IIS7.5 访问动态tag链接跳转伪静态链接

文章来源:春哥团队 发布日期:2023-09-19 分类:代码世界 阅读( )

帝国cms 如何让tag伪静态配置IIS7.5  访问动态tag链接跳转伪静态链接
                <rule name="tag" stopProcessing="true">
                    <match url="^tag/([0-9]+).html$" ignoreCase="false" />
                    <action type="Rewrite" url="e/tags/?tagid={R:1}" appendQueryString="true" />
                </rule>
                <rule name="tag动态跳静态" stopProcessing="true">
                   <match url="^e/tags?" ignoreCase="true" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{QUERY_STRING}" pattern="^tagid=([0-9]+)$" />
                    </conditions>
                    <action type="Redirect" url="/tag/{C:1}.html" appendQueryString="false" redirectType="Permanent" />
                </rule>
本方法适用于web.config配置  iis7.5

最新文章:

二维码