">      "/>

iis伪静态转换

时间: 阅读:191
iis伪静态转换

最佳回答

临沂网站建设

临沂网站建设

2023-01-15 22:25:27

<rule name="bellong rewrite1" stopProcessing="true">
    <match url="^(.*)/index.html" ignoreCase="false" />
    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
    <action type="Rewrite" url="{R:1}/index.php" appendQueryString="false" />
</rule><rule name="bellong rewrite2" stopProcessing="true">
    <match url="^(.*)/index-([0-9_]*)-(0|1)?-([0-9]*).html" ignoreCase="false" />
    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
    <action type="Rewrite" url="{R:1}/index.php?area_id={R:2}&amp;list_mode={R:3}&amp;p={R:4}" appendQueryString="false" />
</rule><rule name="bellong rewrite3" stopProcessing="true">
    <match url="^(.*)/list_([a-z]+)-([0-9_]*)-(0|1)?-([0-9]*).html" ignoreCase="false" />
    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
    <action type="Rewrite" url="{R:1}/list.php?mode={R:2}&amp;area_id={R:3}&amp;list_mode={R:4}&amp;p={R:5}" appendQueryString="false" />
</rule><rule name="bellong rewrite4" stopProcessing="true">
    <match url="^(.*)/article_([a-z]+)-([0-9]+)-([0-9]*).html" ignoreCase="false" />
    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
    <action type="Rewrite" url="{R:1}/article.php?mode={R:2}&amp;id={R:3}&amp;p={R:4}" appendQueryString="false" />
</rule>

最新回答共有2条回答

  • 专业建网站
    回复
    2023-01-16 00:00:29

    必备条件:安装过Net Framework组件,建议2.0版本以上
    1、IIS上找到要设置伪静态的站点名称,右键点属性,
    2、在属性页面上选中“主目录”,在页面右下方点“配置”
    3、查找应用程序扩展:aspx,选中后点“编辑”按钮,查看可执行文件路径
    4、复制可执行文件路径备用,并关闭3中的页面。
    5、回到2中的页面,点“添加”按钮,出现在4中的页面,添加刚才复制的aspx可执行文件路径,扩展名处可添加:.html 或者.htm
    6、不选中“确定文件是否存在”,然后点确定,IIS6环境下的.net伪静态环境就配置好了。