Apr 21

Zencart 伪静态规则for windows IIS7 不指定

碟舞飞扬 , 15:02 , 服务器类 , 评论(0) , 引用(0) , 阅读(20133) , Via 本站原创 | |
<configuration>
  
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
  <rewrite>
    <rules>
      <rule name="Rewrite subdomain">
        <match url="(.*)" />
         <conditions>
          <add input="{HTTP_HOST}" pattern="^yourdomain\.com$" />
         </conditions>
         <action type="Redirect"  url="http://www.yourdomain.com/{R:1}" appendQueryString="false"/>
      </rule>
      <rule name="From Ultimate SEO URLs 1" stopProcessing="true">
            <match url="^(.*)-p-(.*).html$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=product_info&amp;products_id={R:2}&amp;" appendQueryString="true" />
       </rule>
    
      <rule name="From Ultimate SEO URLs 2" stopProcessing="true">
            <match url="^(.*)-c-(.*).html$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=index&amp;cPath={R:2}&amp;" appendQueryString="true" />
       </rule>
      
       <rule name="From Ultimate SEO URLs 3" stopProcessing="true">
            <match url="^(.*)-m-([0-9]+).html$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=index&amp;manufacturers_id={R:2}&amp;" appendQueryString="true" />
       </rule>
      
       <rule name="From Ultimate SEO URLs 4" stopProcessing="true">
            <match url="^(.*)-pi-([0-9]+).html$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=popup_image&amp;pID={R:2}&amp;" appendQueryString="true" />
       </rule>
        <rule name="From Ultimate SEO URLs 5" stopProcessing="true">
            <match url="^(.*)-pr-([0-9]+).html$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=product_reviews&amp;products_id={R:2}&amp;" appendQueryString="true" />
       </rule>
       <rule name="From Ultimate SEO URLs 6" stopProcessing="true">
            <match url="^(.*)-pri-([0-9]+).html$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=product_reviews_info&amp;products_id={R:2}&amp;" appendQueryString="true" />
       </rule>
      
      <rule name="For Open Operations Info Manager" stopProcessing="true">
            <match url="^(.*)-i-([0-9]+).html$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=info_manager&amp;pages_id={R:2}&amp;" appendQueryString="true" />
       </rule>
      
       <rule name="For dreamscape's News and Articles Manager 1" stopProcessing="true">
            <match url="^news/?$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=news&amp;" appendQueryString="true" />
       </rule>
       <rule name="For dreamscape's News and Articles Manager 2" stopProcessing="true">
            <match url="^news/rss.xml$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=news_rss&amp;" appendQueryString="true" />
       </rule>  
       <rule name="For dreamscape's News and Articles Manager 3" stopProcessing="true">
            <match url="^news/archive/?$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=news_archive&amp;" appendQueryString="true" />
       </rule>
       <rule name="For dreamscape's News and Articles Manager 4" stopProcessing="true">
            <match url="^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=news&amp;date={R:1}-{R:2}-{R:3}&amp;" appendQueryString="true" />
       </rule>
           <rule name="For dreamscape's News and Articles Manager 5" stopProcessing="true">
            <match url="^news/archive/([0-9]{4})-([0-9]{2}).html$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=news_archive&amp;date={R:1}-{R:2}&amp;" appendQueryString="true" />
       </rule>
      <rule name="For dreamscape's News and Articles Manager 6" stopProcessing="true">
            <match url="^news/(.*)-a-([0-9]+)-comments.html$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=news_comments&amp;article_id={R:2}&amp;" appendQueryString="true" />
       </rule>
       <rule name="For dreamscape's News and Articles Manager 7" stopProcessing="true">
            <match url="^news/(.*)-a-([0-9]+).html$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page=news_article&amp;article_id={R:2}&amp;" appendQueryString="true" />
       </rule>
      
      
      
       <rule name="All other pages" stopProcessing="true">
            <match url="^(.*).html$" ignoreCase="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php?main_page={R:1}&amp;" appendQueryString="true" />
       </rule>
     </rules>
    </rewrite>
    </system.webServer>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>
Tags: , ,
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]