找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2141|回复: 4

[其他CMS] IIS 7.0下pageadmin cms伪静态规则

[复制链接]
发表于 2011-7-17 23:38:40 | 显示全部楼层 |阅读模式
本帖最后由 coby 于 2011-7-17 23:42 编辑
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3.   <system.webServer>
  4.     <rewrite>
  5.       <rules>
  6.         <rule name="Imported Rule 1">
  7.           <match url="^index.html$" ignoreCase="false" />
  8.           <action type="Rewrite" url="/index.aspx" />
  9.         </rule>
  10.         <rule name="Imported Rule 2">
  11.           <match url="^lanmu_([0-9]+).html$" ignoreCase="false" />
  12.           <action type="Rewrite" url="/index.aspx?menuid={R:1}" appendQueryString="false" />
  13.         </rule>
  14.         <rule name="Imported Rule 3">
  15.           <match url="^([a-zA-Z]+)/nav_([0-9]+)_([0-9]+).html$" ignoreCase="false" />
  16.           <action type="Rewrite" url="/index.aspx?type={R:1}&amp;menuid={R:2}&amp;lanmuid={R:3}" appendQueryString="false" />
  17.         </rule>
  18.         <rule name="Imported Rule 4">
  19.           <match url="^([a-zA-Z]+)/nav_([0-9]+)_([0-9]+)_([0-9]+).html$" ignoreCase="false" />
  20.           <action type="Rewrite" url="/index.aspx?type={R:1}&amp;menuid={R:2}&amp;lanmuid={R:3}&amp;page={R:4}" appendQueryString="false" />
  21.         </rule>
  22.         <rule name="Imported Rule 5">
  23.           <match url="^([a-zA-Z]+)/category_([0-9]+)_([0-9]+)_([0-9]+).html$" ignoreCase="false" />
  24.           <action type="Rewrite" url="/index.aspx?type={R:1}&amp;menuid={R:2}&amp;lanmuid={R:3}&amp;categoryid={R:4}" appendQueryString="false" />
  25.         </rule>
  26.         <rule name="Imported Rule 6">
  27.           <match url="^([a-zA-Z]+)/category_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html$" ignoreCase="false" />
  28.           <action type="Rewrite" url="/index.aspx?type={R:1}&amp;menuid={R:2}&amp;lanmuid={R:3}&amp;categoryid={R:4}&amp;page={R:5}" appendQueryString="false" />
  29.         </rule>
  30.         <rule name="Imported Rule 7">
  31.           <match url="^([a-zA-Z]+)/detail_([0-9]+)_([0-9]+)_([0-9]+).html$" ignoreCase="false" />
  32.           <action type="Rewrite" url="/index.aspx?type={R:1}&amp;menuid={R:2}&amp;lanmuid={R:3}&amp;infoid={R:4}" appendQueryString="false" />
  33.         </rule>
  34.         <rule name="Imported Rule 8">
  35.           <match url="^([a-zA-Z]{2})/index.html$" ignoreCase="false" />
  36.           <action type="Rewrite" url="/index.aspx?language={R:1}" appendQueryString="false" />
  37.         </rule>
  38.         <rule name="Imported Rule 9">
  39.           <match url="^([a-zA-Z]{2})/lanmu_([0-9]+).html$" ignoreCase="false" />
  40.           <action type="Rewrite" url="/index.aspx?language={R:1}&amp;menuid={R:2}" appendQueryString="false" />
  41.         </rule>
  42.         <rule name="Imported Rule 10">
  43.           <match url="^([a-zA-Z]{2})/([a-zA-Z]+)/nav_([0-9]+)_([0-9]+).html$" ignoreCase="false" />
  44.           <action type="Rewrite" url="/index.aspx?language={R:1}&amp;type={R:2}&amp;menuid={R:3}&amp;lanmuid={R:4}" appendQueryString="false" />
  45.         </rule>
  46.         <rule name="Imported Rule 11">
  47.           <match url="^([a-zA-Z]{2})/([a-zA-Z]+)/nav_([0-9]+)_([0-9]+)_([0-9]+).html$" ignoreCase="false" />
  48.           <action type="Rewrite" url="/index.aspx?language={R:1}&amp;type={R:2}&amp;menuid={R:3}&amp;lanmuid={R:4}&amp;page={R:5}" appendQueryString="false" />
  49.         </rule>
  50.         <rule name="Imported Rule 12">
  51.           <match url="^([a-zA-Z]{2})/([a-zA-Z]+)/category_([0-9]+)_([0-9]+)_([0-9]+).html$" ignoreCase="false" />
  52.           <action type="Rewrite" url="/index.aspx?language={R:1}&amp;type={R:2}&amp;menuid={R:3}&amp;lanmuid={R:4}&amp;categoryid={R:5}" appendQueryString="false" />
  53.         </rule>
  54.         <rule name="Imported Rule 13">
  55.           <match url="^([a-zA-Z]{2})/([a-zA-Z]+)/category_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html$" ignoreCase="false" />
  56.           <action type="Rewrite" url="/index.aspx?language={R:1}&amp;type={R:2}&amp;menuid={R:3}&amp;lanmuid={R:4}&amp;categoryid={R:5}&amp;page={R:6}" appendQueryString="false" />
  57.         </rule>
  58.         <rule name="Imported Rule 14">
  59.           <match url="^([a-zA-Z]{2})/([a-zA-Z]+)/detail_([0-9]+)_([0-9]+)_([0-9]+).html$" ignoreCase="false" />
  60.           <action type="Rewrite" url="/index.aspx?language={R:1}&amp;type={R:2}&amp;menuid={R:3}&amp;lanmuid={R:4}&amp;infoid={R:5}" appendQueryString="false" />
  61.         </rule>
  62.       </rules>
  63.     </rewrite>
  64.   </system.webServer>
  65. </configuration>
复制代码
将以上代码保存为web.config文件,并上传到pageadmin cms根目录即可。
回复

使用道具 举报

发表于 2013-4-25 11:00:58 | 显示全部楼层
]睡眠是一门艺术——谁也无法阻挡我追求艺术的脚步!





















回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|王牌互联

GMT+8, 2024-11-17 04:33 , Processed in 0.031709 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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