ѡ̳

标题: 新增iis7环境下的伪静态文件 [打印本页]

作者: admin    时间: 2018-4-11 15:05
标题: 新增iis7环境下的伪静态文件
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>







欢迎光临 ѡ̳ (http://www.sunminxuan.cn/bbs/) Powered by Discuz! X3.4