主站zblog伪静态的情况下,站内站的伪静态规则怎么写呀? 悬赏3元 已结束
主站zblog自动生成的伪静态文件:web.config,站内站maxcms自动生成的伪静态文件:httpd.ini,服务器是 iis7.5,请问我怎么把 httpd.ini的组合到主站的web.config实现访问呢?求大神帮忙。感谢!
主站的防伪静态规则如下:
<?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="^icwrj.com$" />
</conditions>
<action type="Redirect" url="http://www.icwrj.com/{R:0}" redirectType="Permanent" />
</rule>
<rule name="Imported Rule Default+Page" stopProcessing="true">
<match url="^default_([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?page={R:1}" />
</rule>
<rule name="Imported Rule Category+Page" stopProcessing="true">
<match url="^(?!zb_)(.*)_([0-9]+)/$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?cate={R:1}&page={R:2}" />
</rule>
<rule name="Imported Rule Category" stopProcessing="true">
<match url="^(?!zb_)(.*)/$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?cate={R:1}" />
</rule>
<rule name="Imported Rule Author+Page" stopProcessing="true">
<match url="^author-([0-9]+)_([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?auth={R:1}&page={R:2}" />
</rule>
<rule name="Imported Rule Author" stopProcessing="true">
<match url="^author-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?auth={R:1}" />
</rule>
<rule name="Imported Rule Tags+Page" stopProcessing="true">
<match url="^tags-([0-9]+)_([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?tags={R:1}&page={R:2}" />
</rule>
<rule name="Imported Rule Tags" stopProcessing="true">
<match url="^tags-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?tags={R:1}" />
</rule>
<rule name="Imported Rule Date+Page" stopProcessing="true">
<match url="^date-([0-9\-]+)_([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?date={R:1}&page={R:2}" />
</rule>
<rule name="Imported Rule Date" stopProcessing="true">
<match url="^date-([0-9\-]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?date={R:1}" />
</rule>
<rule name="Imported Rule Article" stopProcessing="true">
<match url="^(?!zb_).*/(?!zb_)(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="view.asp?id={R:1}" />
</rule>
<rule name="Imported Rule Page" stopProcessing="true">
<match url="^(?!zb_)(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="view.asp?id={R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
站内站maxcms生成的是 httpd.ini 文件如下:
#news part
RewriteRule ^(.*)/\{newsdirname4\}/\{partdirname4\}/index(.+?)\.html$ $1/\{partdirname1\}/index\.asp\?$2\.html [I]
#news article
RewriteRule ^(.*)/\{newsdirname4\}/\{articledirname4\}/\{articlepagename4\}(.+?)\.html$ $1/\{articledirname1\}/index\.asp\?$2\.html [I]
#news index
RewriteRule ^(.*)/\{newsdirname4\}/\{newspagename4\}\.html$ $1/\{newsdirname1\}/index\.asp [I]
#channel
RewriteRule ^(.*)/list/index(.+?)\.html$ $1/list/index\.asp\?$2\.html [I]
#content
RewriteRule ^(.*)/view/index(.+?)\.html$ $1/detail/index\.asp\?$2\.html [I]
#play
RewriteRule ^(.*)/player/(.+?)\.html$ $1/video/index\.asp\?$2 [I]
#topic index
RewriteRule ^(.*)/topic/index([^.]+?)\.html$ $1/topic/index\.asp\?$2\.html [I]
#topic page
RewriteRule ^(.*)/topiclist/([^.]+?)\.html$ $1/topiclist/index\.asp\?$2\.html [I]
#index
RewriteRule ^([^?]*)/index\.html$ $1/index\.asp [I]