找回密码
 注册
搜索
免费空间 免费域名 免费AI 老牌主机商首月仅1美分!27美元/年!Spaceship优惠码 Namecheap优惠码阿里云2核2G3M新老续费同享99元/年!
查看: 144|回复: 5

[问题求助] httpd.ini 转成web.config,万分火急

[复制链接]
发表于 2011-3-31 20:27:52 | 显示全部楼层 |阅读模式
请高手帮忙转成web.config的。
httpd.ini 源码如下。谢谢大哥大姐们了!
原帖http://www.hostloc.com/thread-52757-1-1.html


  1. [ISAPI_Rewrite]

  2. RewriteRule (.*)sort/([0-9]+)/([0-9]+).html$ $1sort.php\?sortid=$2&page=$3 [L]
  3. RewriteRule (.*)over/([0-9]+).html$ $1over.php\?page=$2 [L]
  4. RewriteRule (.*)top/(.*)/([0-9]+).html$ $1top.php\?topid=$2&page=$3 [L]
  5. RewriteRule (.*)topover/(.*)/([0-9]+).html$ $1topover.php\?topid=$2&page=$3 [L]
  6. RewriteRule (.*)book/([0-9]+).html$ $1book.php\?bookid=$2 [L]
  7. RewriteRule (.*)down/(.*)/([0-9]+).html$ $1down.php\?bookid=$3&type=$2 [L]
  8. RewriteRule (.*)readend/([0-9]+).html$ $1readend.php\?bookid=$2 [L]
  9. RewriteRule (.*)read/([0-9]+)/([0-9]+).html$ $1read.php\?cutid=$2&bookid=$3 [L]
  10. RewriteRule (.*)chapter/([0-9]+)/([0-9]+)/([0-9]+).html$ $1chapter.php\?cutid=$2&bookid=$3&chapterid=$4 [L]
复制代码


我修改的web.config 如下,只有一个R 如{R:1}的这样的有效,出现多个R如 {R:1}&{R:1} 这样的错误,请问要怎么修改?
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name="sort">
  7. <match url="^sort/([0-9]+)/([0-9]+).html$" ignoreCase="false" />
  8. <action type="Rewrite" url="sort.php?sortid={R:1}&page={R:2}" appendQueryString="false" />
  9. </rule>
  10. <rule name="over">
  11. <match url="^over/([0-9]+).html$" ignoreCase="false" />
  12. <action type="Rewrite" url="over.php?page={R:1}" appendQueryString="false" />
  13. </rule>
  14. <rule name="top">
  15. <match url="^top/(.*)/([0-9]+).html$" ignoreCase="false" />
  16. <action type="Rewrite" url="top.php?topid={R:1}&page={R:2}" appendQueryString="false" />
  17. </rule>
  18. <rule name="topover">
  19. <match url="^topover/(.*)/([0-9]+).html$" ignoreCase="false" />
  20. <action type="Rewrite" url="topover.php?topid={R:1}&page={R:2}" appendQueryString="false" />
  21. </rule>
  22. <rule name="book">
  23. <match url="^book/([0-9]+).html$" ignoreCase="false" />
  24. <action type="Rewrite" url="book.php?bookid={R:1}" appendQueryString="false" />
  25. </rule>
  26. <rule name="down">
  27. <match url="^down/(.*)/([0-9]+).html$" ignoreCase="false" />
  28. <action type="Rewrite" url="down.php?bookid={R:2}&type={R:1}" appendQueryString="false" />
  29. </rule>
  30. <rule name="readend">
  31. <match url="^readend/([0-9]+).html$" ignoreCase="false" />
  32. <action type="Rewrite" url="readend.php?bookid={R:1}" appendQueryString="false" />
  33. </rule>
  34. <rule name="read">
  35. <match url="^read/([0-9]+)/([0-9]+).html$" ignoreCase="false" />
  36. <action type="Rewrite" url="read.php?cutid={R:1}&bookid={R:2}" appendQueryString="false" />
  37. </rule>
  38. <rule name="chapter">
  39. <match url="^chapter/([0-9]+)/([0-9]+)/([0-9]+).html$" ignoreCase="false" />
  40. <action type="Rewrite" url="chapter.php?cutid={R:1}&bookid={R:2}&chapterid={R:3}" appendQueryString="false" />
  41. </rule>
  42. <rule name="index.html">
  43. <match url="index.html" />
  44. <action type="Rewrite" url="index.php" />
  45. </rule>
  46. </rules>
  47. </rewrite>
  48. </system.webServer>
  49. </configuration>
复制代码
发表于 2011-3-31 21:11:58 | 显示全部楼层
天书。。。
头像被屏蔽
发表于 2011-4-1 01:52:09 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2011-4-1 03:09:20 | 显示全部楼层
路过。不懂。
发表于 2011-4-1 07:50:22 | 显示全部楼层
不懂,路过
发表于 2011-4-1 11:14:40 | 显示全部楼层
一字一百
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|免费吧论坛

GMT+8, 2025-1-21 04:49 , Processed in 0.019255 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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