ѡ̳

 找回密码
 ע
搜索
查看: 809|回复: 0
打印 上一主题 下一主题

新增iis7环境下的伪静态文件

[复制链接]

789

主题

1158

帖子

4197

积分

Ա

Rank: 9Rank: 9Rank: 9

积分
4197
跳转到指定楼层
¥
发表于 2018-4-11 15:05:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
web.config  带中英文

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

    <rule name="content" stopProcessing="true">
      <match url="^content-([0-9]+)-([0-9]+)-([0-9]+)\.html$" ignoreCase="true" />
      <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}" />
    </rule>
       
    <rule name="show" stopProcessing="true">
      <match url="^show-([0-9]+)-([0-9]+)-([0-9]+)\.html$" ignoreCase="true" />
      <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}" />
    </rule>

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



   <rule name="lists_1" stopProcessing="true">
      <match url="^lists/([0-9A-Za-z_]+)\.html$" ignoreCase="true" />
      <action type="Rewrite" url="index.php?m=content&amp;c=index&amp;a=lists&amp;catdir={R:1}" />
   </rule>
   <rule name="lists_2" stopProcessing="true">
      <match url="^lists/([0-9A-Za-z_]+)/([0-9]+)\.html$" ignoreCase="true" />
      <action type="Rewrite" url="index.php?m=content&amp;c=index&amp;a=lists&amp;catdir={R:1}&amp;page={R:2}" />
   </rule>

    <rule name="content_1" stopProcessing="true">
      <match url="^content/([0-9A-Za-z_]+)/([0-9]+)\.html$" ignoreCase="true" />
      <action type="Rewrite" url="index.php?m=content&amp;c=index&amp;a=show&amp;catdir={R:1}&amp;id={R:2}" />
   </rule>       
        <rule name="content_2" stopProcessing="true">
      <match url="^content/([0-9A-Za-z_]+)/([0-9]+)/([0-9]+)\.html$" ignoreCase="true" />
      <action type="Rewrite" url="index.php?m=content&amp;c=index&amp;a=show&amp;catdir={R:1}&amp;id={R:2}&amp;page={R:3}" />
   </rule>




     <rule name="enindex" stopProcessing="true">
      <match url="^en/index\.html$" ignoreCase="true" />
      <action type="Rewrite" url="en/index.php" />
    </rule>
       

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

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






   <rule name="en_lists_1" stopProcessing="true">
      <match url="^en/lists/([0-9A-Za-z_]+)\.html$" ignoreCase="true" />
      <action type="Rewrite" url="index.php?m=content&amp;c=index&amp;a=lists&amp;catdir={R:1}" />
   </rule>
   <rule name="en_lists_2" stopProcessing="true">
      <match url="^en/lists/([0-9A-Za-z_]+)/([0-9]+)\.html$" ignoreCase="true" />
      <action type="Rewrite" url="en/index.php?m=content&amp;c=index&amp;a=lists&amp;catdir={R:1}&amp;page={R:2}" />
   </rule>

    <rule name="en_content_1" stopProcessing="true">
      <match url="^en/content/([0-9A-Za-z_]+)/([0-9]+)\.html$" ignoreCase="true" />
      <action type="Rewrite" url="en/index.php?m=content&amp;c=index&amp;a=show&amp;catdir={R:1}&amp;id={R:2}" />
   </rule>       
        <rule name="en_content_2" stopProcessing="true">
      <match url="^en/content/([0-9A-Za-z_]+)/([0-9]+)/([0-9]+)\.html$" ignoreCase="true" />
      <action type="Rewrite" url="en/index.php?m=content&amp;c=index&amp;a=show&amp;catdir={R:1}&amp;id={R:2}&amp;page={R:3}" />
   </rule>


       
  </rules>
   </rewrite>
</system.webServer>
</configuration>


web.config

4.1 KB, 下载次数: 0

回复

使用道具 举报

您需要登录后才可以回帖 登录 | ע

本版积分规则

QQ|Archiver|ֻ|С|ѡ̳

GMT+8, 2026-5-2 04:40 , Processed in 0.097754 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表
0.1117s