Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

httpd.ini转换的问题

[复制链接]
yangu2008 发表于 2009-11-24 00:32:49 | 显示全部楼层 |阅读模式
将iis转到apache,伪静态httpd.ini要转成.htaccess文件,但不会转换,哪位高人帮忙

==================httpd.ini=====================
  1. [ISAPI_Rewrite]

  2. # 3600 = 1 hour
  3. CacheClockRate 3600

  4. RepeatLimit 32

  5. # Protect httpd.ini and httpd.parse.errors files
  6. # from accessing through HTTP


  7. RewriteRule ^/httpd(?:\.ini|\.parse\.errors).* [F,I,O]
  8. RewriteRule /index\.html\?*(.*)$  /index\.aspx\
  9. RewriteRule /map/index\.html\?*(.*)$  /map/index\.aspx\
  10. RewriteRule /arti/index\.html\?*(.*)$  /arti/index\.aspx\
  11. RewriteRule /arti/list_([0-9]+)_p([0-9]+)\.html\?*(.*)$  /arti/list\.aspx\?id=$1&PageNo=$2
  12. RewriteRule /arti/listnew_([0-9]+)\.html\?*(.*)$  /arti/list\.aspx\?id=$1
  13. RewriteRule /arti/arti_([0-9]+)\.html\?(.*)$  /arti/show\.aspx\?id=$1&$2
  14. RewriteRule /arti/arti_([0-9]+)\.html\?*(.*)$  /arti/show\.aspx\?id=$1
  15. RewriteRule /member/register_([0-9]+)\.html\?*(.*)$  /member/reg\.aspx\?action=$1
  16. RewriteRule /service/index\.html\?(.*)$  /service/serviceindex\.aspx\?$1
  17. RewriteRule /service/index\.html\?*(.*)$  /service/serviceindex\.aspx\
  18. RewriteRule /service/$  /service/serviceindex\.aspx\
  19. RewriteRule /getcode\.html\?*(.*)$  /image\.aspx\
  20. RewriteRule /member/login\.html\?(.*)$  /member/log\.aspx\?$1
  21. RewriteRule /member/login\.html\?*(.*)$  /member/log\.aspx\
  22. RewriteRule /member/register\.html\?(.*)$  /member/reg\.aspx\?$1
  23. RewriteRule /member/register\.html\?*(.*)$  /member/reg\.aspx
  24. RewriteRule /member/index\.html\?*(.*)$  /member/userindex\.aspx
  25. RewriteRule /member/$  /member/userindex\.aspx\
  26. RewriteRule /daoh/index\.html\?*(.*)$  /daoh/wangzhiindex\.aspx
  27. RewriteRule /daoh/daoh_([0-9]+)\.html\?*(.*)$  /daoh/daohshow\.aspx\?id=$1
  28. RewriteRule /daoh/$  /daoh/wangzhiindex\.aspx
  29. RewriteRule /help/arti_([0-9]+)\.html\?*(.*)$  /help/arti\.aspx\?id=$1
  30. RewriteRule /help/arti\.html\?*(.*)$  /help/arti\.aspx\
  31. RewriteRule /help/$  /help/helpindex\.aspx\
  32. RewriteRule /gift/index\.html\?*(.*)$  /gift/index\.aspx\
  33. RewriteRule /gift/index_p([0-9]+)\.html\?*(.*)$  /gift/index\.aspx\?iPageNo=$1
  34. RewriteRule /coupon/index\.html\?(.*)$  /coupon/couponindex\.aspx\?$1
  35. RewriteRule /coupon/index\.html\?*(.*)$  /coupon/couponindex\.aspx\
  36. RewriteRule /coupon/show_([0-9]+)\.html\?*(.*)$  /coupon/couponshow\.aspx\?id=$1
  37. RewriteRule /coupon/preview_([0-9]+)\.html\?*(.*)$  /coupon/couponpreview\.aspx\?id=$1
  38. RewriteRule /coupon/$  /coupon/couponindex\.aspx\
  39. RewriteRule /help/index\.html\?*(.*)$  /help/helpindex\.aspx\
  40. RewriteRule /help/index_([0-9]+)\.html\?*(.*)$  /help/helpindex\.aspx\?categoryid=$1
  41. RewriteRule /help/help_([0-9]+)\.html\?*(.*)$  /help/helpindex\.aspx\?id=$1
  42. RewriteRule /photo/index\.html\?(.*)$  /photo/photoindex\.aspx\?$1
  43. RewriteRule /photo/index\.html\?*(.*)$  /photo/photoindex\.aspx\
  44. RewriteRule /photo/picsa\.html\?(.*)$  /photo/picsaindex\.aspx\?$1
  45. RewriteRule /photo/picsa\.html\?*(.*)$  /photo/picsaindex\.aspx\
  46. RewriteRule /photo/photo_([0-9]+)\.html\?*(.*)$  /photo/show\.aspx\?id=$1
  47. RewriteRule /photo/picsa_([0-9]+)\.html\?*(.*)$  /photo/show\.aspx\?pid=$1
  48. RewriteRule /company/index\.html\?(.*)$  /company/companyindex\.aspx\?$1
  49. RewriteRule /company/index\.html\?*(.*)$  /company/companyindex\.aspx\
  50. RewriteRule /company/company_([0-9]+)\.html\?*(.*)$  /company/companyshow\.aspx\?id=$1
  51. RewriteRule /company/$  /company/companyindex\.aspx\
  52. RewriteRule /tuang/index\.html\?(.*)$  /tuang/tuangindex\.aspx\?$1
  53. RewriteRule /tuang/index\.html\?*(.*)$  /tuang/tuangindex\.aspx
  54. RewriteRule /tuang/zftg\.html\?(.*)$  /tuang/tuangzftg\.aspx\?$1
  55. RewriteRule /tuang/zftg\.html\?*(.*)$  /tuang/tuangzftg\.aspx
  56. RewriteRule /tuang/index_c([0-9]+)\.html\?*(.*)$  /tuang/tuangindex\.aspx\?colname=$1
  57. RewriteRule /tuang/index_q([0-9]+)\.html\?*(.*)$  /tuang/tuangindex\.aspx\?keyword=$1
  58. RewriteRule /tuang/index_p([0-9]+)\.html\?*(.*)$  /tuang/tuangindex\.aspx\?PageNo=$1
  59. RewriteRule /tuang/index_c([0-9]+)_p([0-9]+)\.html\?*(.*)$  /tuang/tuangindex\.aspx\?colname=$1&PageNo=$2
  60. RewriteRule /tuang/index_q([0-9]+)_p([0-9]+)\.html\?*(.*)$  /tuang/tuangindex\.aspx\?keyword=$1&PageNo=$2
  61. RewriteRule /tuang/tuang_([0-9]+)\.html\?*(.*)$  /tuang/tuangshow\.aspx\?id=$1
  62. RewriteRule /tuang/$  /tuang/tuangindex\.aspx\
  63. RewriteRule /woyaoorder\.html\?(.*)$  /order\.aspx\?$1
  64. RewriteRule /woyaoorder\.html\?*(.*)$  /order\.aspx\
  65. RewriteRule /shop/index\.html\?(.*)$  /shop/shopindex\.aspx\?$1
  66. RewriteRule /shop/index\.html\?*(.*)$  /shop/shopindex\.aspx\
  67. RewriteRule /shop/shop_([0-9]+)\.html\?*(.*)$  /shop/shopshow\.aspx\?id=$1
  68. RewriteRule /shop/$  /shop/shopindex\.aspx\
  69. RewriteRule /jo/index\.html\?(.*)$  /jo/joindex\.aspx\?$1
  70. RewriteRule /jo/index\.html\?*(.*)$  /jo/joindex\.aspx\
  71. RewriteRule /jo/$  /jo/joindex\.aspx\
  72. RewriteRule /jo/list_([0-9]+)_p([0-9]+)\.html\?*(.*)$  /jo/list\.aspx\?id=$1&PageNo=$2
  73. RewriteRule /jo/list_([0-9]+)\.html\?*(.*)$  /jo/list\.aspx\?id=$1
  74. RewriteRule /jo/arti_([0-9]+)\.html\?*(.*)$  /jo/show\.aspx\?id=$1
  75. RewriteRule /jo/zhiwei\.html\?(.*)$  /jo/zhiwei\.aspx\?$1
  76. RewriteRule /jo/zhiwei\.html\?*(.*)$  /jo/zhiwei\.aspx
  77. RewriteRule /jo/rencai\.html\?(.*)$  /jo/rencai\.aspx\?$1
  78. RewriteRule /jo/rencai\.html\?*(.*)$  /jo/rencai\.aspx
  79. RewriteRule /jo/zhiwei_([0-9]+)\.html\?*(.*)$  /jo/showzhiwei\.aspx\?id=$1
  80. RewriteRule /jo/rencai_([0-9]+)\.html\?(.*)$  /jo/showrencai\.aspx\?id=$1&$2
  81. RewriteRule /jo/rencai_([0-9]+)\.html\?*(.*)$  /jo/showrencai\.aspx\?id=$1
  82. RewriteRule /jo/company_([0-9]+)\.html\?*(.*)$  /jo/company\.aspx\?id=$1
  83. RewriteRule /jo/msyq_([0-9]+)\.html\?*(.*)$  /jo/msyq\.aspx\?id=$1

  84. RewriteRule /live/index\.html\?(.*)$  /live/liveindex\.aspx\?$1
  85. RewriteRule /live/index\.html\?*(.*)$  /live/liveindex\.aspx\
  86. RewriteRule /live/live_([0-9]+)\.html\?*(.*)$  /live/show\.aspx\?id=$1
  87. RewriteRule /live/fabu\.html\?(.*)$  /live/fabu\.aspx\?$1
  88. RewriteRule /live/fabu\.html\?*(.*)$  /live/fabu\.aspx
  89. RewriteRule /live/$  /live/liveindex\.aspx\
  90. RewriteRule /live/\?(.*)$  /live/liveindex\.aspx\?$1
  91. RewriteRule /notice/index\.html\?*(.*)$  /notice/index\.aspx\
  92. RewriteRule /notice/notice_([0-9]+)\.html\?*(.*)$  /notice/index\.aspx\?id=$1
  93. RewriteRule /cuxiao/index\.html\?(.*)$  /cuxiao/index\.aspx\?$1
  94. RewriteRule /cuxiao/index\.html\?*(.*)$  /cuxiao/index\.aspx\
  95. RewriteRule /cuxiao/cuxiao_([0-9]+)\.html\?*(.*)$  /cuxiao/show\.aspx\?id=$1

  96. RewriteRule /pps/index\.html\?*(.*)$  /pps/index\.aspx\
  97. RewriteRule /calendar/index\.html\?*(.*)$  /calendar/index\.aspx\
  98. RewriteRule /fetion/index\.html\?*(.*)$  /fetion/index\.aspx\
  99. RewriteRule /mp3/index\.html\?*(.*)$  /mp3/index\.aspx\
  100. RewriteRule /history/index\.html\?(.*)$  /history/index\.aspx\?$1
  101. RewriteRule /history/index\.html\?*(.*)$  /history/index\.aspx\
  102. RewriteRule /diantai/index\.html\?*(.*)$  /diantai/index\.aspx\
复制代码
回复

使用道具 举报

scckfzx 发表于 2009-11-24 00:53:51 | 显示全部楼层
修改文件名即可,其他不用转化
回复

使用道具 举报

玻璃屋女孩 发表于 2009-11-24 10:51:27 | 显示全部楼层
如果用apache的话,可以参考下
http://faq.comsenz.com/viewnews-55
回复

使用道具 举报

Popss 发表于 2009-11-24 15:29:36 | 显示全部楼层
找个.htaccess文件放根目录就可以,前提是支持伪静态
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-16 13:29 , Processed in 0.116167 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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