源码论坛,商业源码下载,尽在锦尚中国商业源码论坛

标题: .htaccess转换httpd.ini或者httpd.conf【求助!】 [打印本页]

作者: latent    时间: 2010-2-8 10:04
标题: .htaccess转换httpd.ini或者httpd.conf【求助!】
  1. RewriteEngine On
  2. RewriteBase /et

  3. ## ET
  4. RewriteRule ^([0-9]+)$ index.php?uid=$1
  5. RewriteRule ^index$ index.php
  6. RewriteRule ^browse/p.(.+)$ browse.php?page=$1
  7. RewriteRule ^browse$ browse.php
  8. RewriteRule ^home/(.+)/u.(.+)/p.(.+)$ home.php?hm=$1&uid=$2&page=$3
  9. RewriteRule ^home/(.+)/u.(.+)$ home.php?hm=$1&uid=$2
  10. RewriteRule ^home/u.(.+)$ home.php?uid=$1
  11. RewriteRule ^home/(.+)$ home.php?hm=$1
  12. RewriteRule ^home$ home.php
  13. RewriteRule ^op/topic/(.+)/p.(.+)$ op.php?op=topic&tid=$1&page=$2
  14. RewriteRule ^op/topic/(.+)$ op.php?op=topic&tid=$1
  15. RewriteRule ^op/friends/u.(.+)/p.(.+)$ op.php?op=friends&uid=$1&page=$2
  16. RewriteRule ^op/friends/u.(.+)$ op.php?op=friends&uid=$1
  17. RewriteRule ^op/photo/u.(.+)/p.(.+)$ op.php?op=photo&uid=$1&page=$2
  18. RewriteRule ^op/photo/u.(.+)$ op.php?op=photo&uid=$1
  19. RewriteRule ^op/viewphoto/(.+)$ op.php?op=viewphoto&ptid=$1
  20. RewriteRule ^op/viewalbum/(.+)/p.(.+)$ op.php?op=viewalbum&alid=$1&page=$2
  21. RewriteRule ^op/viewalbum/(.+)$ op.php?op=viewalbum&alid=$1
  22. RewriteRule ^op/share/u.(.+)$ op.php?op=share&uid=$1
  23. RewriteRule ^op/sharereply/(.+)/p.(.+)$ op.php?op=sharereply&sid=$1&page=$2
  24. RewriteRule ^op/sharereply/(.+)$ op.php?op=sharereply&sid=$1
  25. RewriteRule ^op/sendmsg/u.(.+)$ op.php?op=sendmsg&uid=$1
  26. RewriteRule ^op/view/(.+)$ op.php?op=view&id=$1
  27. RewriteRule ^op/(.+)$ op.php?op=$1
  28. RewriteRule ^op$ op.php
  29. RewriteRule ^badge/picsign/(.+)\.jpg$ badge/picsign.php?uid=$1
  30. RewriteRule ^plugin$ plugin.php

  31. ## API
  32. RewriteRule ^api/statuses/destroy$ api/statuses/destroy.php
  33. RewriteRule ^api/statuses/update$  api/statuses/update.php
  34. RewriteRule ^api/statuses/show/([0-9]+).(xml|json)$ api/statuses/show.php?id=$1&ext=$2
  35. RewriteRule ^api/statuses/public_timeline.(rss|xml|json)$ api/statuses/public_timeline.php?ext=$1&%{QUERY_STRING}
  36. RewriteRule ^api/statuses/user_timeline.(rss|xml|json)$ api/statuses/user_timeline.php?ext=$1&%{QUERY_STRING}
  37. RewriteRule ^api/statuses/follows_timeline.(rss|xml|json)$ api/statuses/follows_timeline.php?ext=$1&%{QUERY_STRING}
  38. RewriteRule ^api/users/followers.(xml|json)$ api/users/followers.php?ext=$1&%{QUERY_STRING}
  39. RewriteRule ^api/users/friends.(xml|json)$ api/users/friends.php?ext=$1&%{QUERY_STRING}
  40. RewriteRule ^api/users/show.(xml|json)$ api/users/show.php?ext=$1&%{QUERY_STRING}
  41. RewriteRule ^api/search/public_timeline.(xml|json)$ api/search/public_timeline.php?ext=$1&%{QUERY_STRING}
复制代码





欢迎光临 源码论坛,商业源码下载,尽在锦尚中国商业源码论坛 (https://bbs.52jscn.com/) Powered by Discuz! X3.3