查看: 2189|回复: 1
打印 上一主题 下一主题

门户通伪静太和404错误转向

[复制链接]
跳转到指定楼层
1#
发表于 2009-10-29 08:02:39 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式

  1. & n" d9 P- L, D" y6 Q7 m& D- Q5 B
  2. deny from all
    $ C, l- h/ o) w, q5 n$ M% x

  3. ) p+ c( r& }1 ~" c, ^2 g
  4. Options -Indexes7 P2 Q$ b0 Y9 o- E+ k: A
  5. ErrorDocument 400 http://www.wfclass.cn/404.html
    # |1 t- {- t# m* F
  6. ErrorDocument 401 http://www.wfclass.cn/404.html
    / Z& x, L3 e0 H2 ?
  7. ErrorDocument 402 http://www.wfclass.cn/404.html
    ( o. N4 ?7 x2 _) k9 v: d7 n
  8. ErrorDocument 403 http://www.wfclass.cn/404.html
    ( e, Q/ A: W( ^  `# `8 [
  9. ErrorDocument 404 http://www.wfclass.cn/404.html! G) Q# G9 E) K, O
  10. ErrorDocument 405 http://www.wfclass.cn/404.html0 B4 n# S5 y; ?2 j* q
  11. ErrorDocument 406 http://www.wfclass.cn/404.html
    1 }9 f" ^5 W" G2 ~& r6 F# `' L
  12. ErrorDocument 407 http://www.wfclass.cn/404.html
    3 `, p: T% x3 x5 F  ^' g* K! O
  13. ErrorDocument 408 http://www.wfclass.cn/404.html
    3 J5 U$ h  b1 i0 M
  14. ErrorDocument 409 http://www.wfclass.cn/404.html0 f, B3 [# p# P( S
  15. ErrorDocument 410 http://www.wfclass.cn/404.html# W1 V* R/ j; h2 W0 c2 s' m
  16. ErrorDocument 411 http://www.wfclass.cn/404.html' c6 B% X+ v/ X; j2 G( g7 m
  17. ErrorDocument 412 http://www.wfclass.cn/404.html7 T8 s1 k" M* S8 g; K8 h, Y0 U
  18. ErrorDocument 413 http://www.wfclass.cn/404.html0 R# V! K2 E9 a) T: A
  19. ErrorDocument 414 http://www.wfclass.cn/404.html8 [! g; z3 v* D
  20. ErrorDocument 500 http://www.wfclass.cn/404.html
    + t* i- v, e- T8 N9 g$ g
  21. ErrorDocument 501 http://www.wfclass.cn/404.html- N" M4 Z1 u4 t) d) r4 o" E8 E
  22. ErrorDocument 502 http://www.wfclass.cn/404.html  c+ V, g8 \8 }% V+ S
  23. ErrorDocument 503 http://www.wfclass.cn/404.html
    $ j3 V' h# l  |- W" t: X
  24. ErrorDocument 504 http://www.wfclass.cn/404.html
    7 Y4 g# W5 ?6 _$ |% Z
  25. ErrorDocument 505 http://www.wfclass.cn/404.html, O; ^' t) l) [/ c8 F4 |
  26. order deny,allow
    ' [. g# ]( _" H% L8 p# g) h
  27. 9 |& R$ ~7 a+ ~* p$ d1 z- q
  28. - D$ z/ k4 K' ^* U4 T0 `/ D" q) U
  29.   E/ T+ }0 B% p' Z, s% \
  30. RewriteEngine On
    1 L3 C. n0 g- x: [( P, x
  31. RewriteBase /& E5 }6 t" I; Q0 U" {& w
  32. RewriteRule ^info-id-([0-9]+)\/$ public/info.php?id=$1
    , S5 P# L8 I0 l3 N3 \& ~. \
  33. RewriteRule ^info-page-([0-9]+)\/$ public/info.php?page=$1
    * k# p1 q. v6 f
  34. RewriteRule ^info-catid-([0-9]+)-page-([0-9]+)\/$ public/info.php?catid=$1&page=$2
    ( @  S. H. t& T% [; T
  35. RewriteRule ^info-catid-([0-9]+)-areaid-([0-9]+)-page-([0-9]+)\/$ public/info.php?catid=$1&areaid=$2&page=$3
    , d( P9 o5 D7 H' g
  36. RewriteRule ^aboutus\/$ public/about.php?part=aboutus
    : M! W6 ], L& C
  37. RewriteRule ^aboutus-id-([0-9]+)\/$ public/about.php?part=aboutus&id=$1
    ' F! X- M1 i( Q+ n
  38. RewriteRule ^announce-page-([0-9]+)\/$ public/about.php?part=announce&page=$1
    - m8 m8 u- s# U  r: Y
  39. RewriteRule ^announce-id-([0-9]+)\/$ public/about.php?part=announce&id=$1/ h! R* b/ J# a- P, @* u
  40. RewriteRule ^faq\/$ public/about.php?part=faq4 e  W# t) U7 m9 T% {: I
  41. RewriteRule ^faq-id-([0-9]+)\/$ public/about.php?part=faq&id=$1
    $ O% Q- `# _" ^, q9 L! _9 m0 c3 m
  42. RewriteRule ^friendlink\/$ public/about.php?part=friendlink9 Y7 O( i$ R  _3 l+ @
  43. RewriteRule ^friendlink-action-apply\/$ public/about.php?part=friendlink&action=apply
    7 C, c# v* l4 \
  44. RewriteRule ^guestbook-page-([0-9]+)\/$ public/about.php?part=guestbook&page=$1
    # t* `  s5 @( w0 A
  45. RewriteRule ^guestbook-action-write\/$ public/about.php?part=guestbook&action=write
    2 h" i2 g  I; R7 w! ]. G. K. z
  46. RewriteRule ^space-([a-z,0-9\-]+)\/$ public/space.php?user=$1
复制代码
( G% w* z  Q7 N/ I( `- M" P8 K
2 a- z, z7 x- {& W( ^

8 H3 r- O; t( C- V把上面代码保存为   .htaccess 放入空间根目录,就可实现
) c/ ~' K  h8 G: A; H2 k, i- R
7 H6 |. Q$ C% U$ b. ?- h演求http://www.wfclass.cn
9 M: X$ _1 r! K! L1 P; [3 |/ [' z
6 o( ~+ r! c; p' S5 E1 G" j另本站pr=2 求同PR友情链接,请到本站申请 ,欢迎合作!
您需要登录后才可以回帖 登录 | 注册蚂蚁CMS论坛

本版积分规则

QQ| Archiver| 手机版| 蚂蚁CMS论坛  


© MayiCMS·蚂蚁分类信息网站系统 - 国内最成熟的php分类信息网站系统,地方便民信息网站/微信小程序解决方案

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