您当前的位置:首页 > CMS常见问题 > phpcms常见问题 >

phpcms .htaccess伪静态规则转web.config规则

0
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>

<rule name="Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^wangzhanchengxu.com$" />
</conditions>
<action type="Redirect" url="http://www.wangzhanchengxu.com/{R:0}" redirectType="Permanent" />
</rule>

<rule name="Index" stopProcessing="true">
<match url="^index.html" />
<action type="Rewrite" url="index.php" />
</rule>

<rule name="Imported Rule 1">
<match url="^list-([0-9]+)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=content&amp;c=index&amp;a=lists&amp;catid={R:1}&amp;diqu={R:2}&amp;jg={R:3}&amp;jy={R:4}&amp;lx={R:5}&amp;sbfl={R:6}&amp;zs={R:7}&amp;page={R:8}" appendQueryString="false" />
</rule>

<rule name="Imported Rule 2">
<match url="^list-([0-9]+)-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=content&amp;c=index&amp;a=lists&amp;catid={R:1}&amp;page={R:2}" appendQueryString="false" />
</rule>

<rule name="Imported Rule 3">
<match url="^show-([0-9]+)-([0-9]+)-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=content&amp;c=index&amp;a=show&amp;catid={R:1}&amp;id={R:2}&amp;page={R:3}" appendQueryString="false" />
</rule>

<rule name="Imported Rule 4">
<match url="^content-([0-9]+)-([0-9]+)-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=content&amp;c=index&amp;a=show&amp;catid={R:1}&amp;id={R:2}&amp;page={R:3}" appendQueryString="false" />
</rule>

</rules>
</rewrite>
</system.webServer>
</configuration>
顶部中部底部