搜外网>搜外问答>问答页面

主站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]

追加问题
    4 人参与回答

专业写各种伪静态规则。。然而需要有实际程序一边测一边改。。

复杂化了,后台不是有伪静态功能吗?

这个你得找个专业的程序啊,花钱上淘宝就能找到

小小爬虫
小小爬虫 · 八年SEo、SEm丨主营上海注册公司、上海代理记账,疑问找我!

问一下服务器商, 有没有默认的伪静态配置文件。按理说, z-blog也算是大众的程序的。