蚂蚁CMS论坛

标题: 门户通伪静太和404错误转向 [打印本页]

作者: liuxing8z    时间: 2009-10-29 08:02
标题: 门户通伪静太和404错误转向
  1. " @( @) l- H: k! b& [  Z
  2. deny from all
    / W5 @& V' @& n$ [, u2 w3 S

  3. " h- U+ T( C8 K4 ^- X
  4. Options -Indexes# b: F; C3 [# c5 W
  5. ErrorDocument 400 http://www.wfclass.cn/404.html
      z) l* M2 ^+ R" c, f: G9 ]4 C* s  ^, L
  6. ErrorDocument 401 http://www.wfclass.cn/404.html! n# v3 p' S6 A7 h9 [5 Q
  7. ErrorDocument 402 http://www.wfclass.cn/404.html2 J+ d/ X' [- z
  8. ErrorDocument 403 http://www.wfclass.cn/404.html
      }* @# N- e5 d4 E+ H) M" z
  9. ErrorDocument 404 http://www.wfclass.cn/404.html; Z5 V+ [0 c( `( b
  10. ErrorDocument 405 http://www.wfclass.cn/404.html7 f( c( X- b( Z, T% n- p
  11. ErrorDocument 406 http://www.wfclass.cn/404.html* x# _* a( Y7 ~
  12. ErrorDocument 407 http://www.wfclass.cn/404.html
    ; K0 J, F; T/ ~' {3 Q% i& q2 p
  13. ErrorDocument 408 http://www.wfclass.cn/404.html9 S- f+ w4 r3 M$ J
  14. ErrorDocument 409 http://www.wfclass.cn/404.html, f* a3 A; j1 m. [* t3 U
  15. ErrorDocument 410 http://www.wfclass.cn/404.html
    % W5 N$ b) `% H# u2 |
  16. ErrorDocument 411 http://www.wfclass.cn/404.html
    . t5 B* \1 W0 v$ `/ S, B
  17. ErrorDocument 412 http://www.wfclass.cn/404.html
    : D& R  Z1 U0 ]9 r! M
  18. ErrorDocument 413 http://www.wfclass.cn/404.html% C5 x) `# g) _# b' ^7 m6 J% t
  19. ErrorDocument 414 http://www.wfclass.cn/404.html# i) a$ Q! z6 k* \
  20. ErrorDocument 500 http://www.wfclass.cn/404.html5 `, |; r6 `5 Q5 d6 A
  21. ErrorDocument 501 http://www.wfclass.cn/404.html
    # ]/ ]* K" h7 c& m' u( c, C
  22. ErrorDocument 502 http://www.wfclass.cn/404.html; y% X' X6 W9 m7 G- t5 e$ z9 w7 G
  23. ErrorDocument 503 http://www.wfclass.cn/404.html7 V% `4 u/ x/ u, s0 i2 t' i9 f. m
  24. ErrorDocument 504 http://www.wfclass.cn/404.html$ x( }) L3 u  O4 X! N
  25. ErrorDocument 505 http://www.wfclass.cn/404.html3 }9 x; m& l8 \2 |1 s( K! `
  26. order deny,allow
    . H) W1 w* H1 \3 Z

  27. * h; i6 b6 |) K. `, W' c
  28. + D$ B% _  Q. `, K7 `  s4 Q

  29. 7 a( M0 F- Q6 l7 K. R% ]1 m- F
  30. RewriteEngine On0 d4 l5 S- u2 g5 n
  31. RewriteBase /  S' O/ s& }3 K( m: M
  32. RewriteRule ^info-id-([0-9]+)\/$ public/info.php?id=$1
    ! z2 P/ h$ s6 m# X: ^8 j
  33. RewriteRule ^info-page-([0-9]+)\/$ public/info.php?page=$1
    $ m% Q# v5 g3 x; T# x1 n4 X% x! \
  34. RewriteRule ^info-catid-([0-9]+)-page-([0-9]+)\/$ public/info.php?catid=$1&page=$2
    ; `0 B' b4 n- x  @
  35. RewriteRule ^info-catid-([0-9]+)-areaid-([0-9]+)-page-([0-9]+)\/$ public/info.php?catid=$1&areaid=$2&page=$3  t+ Y2 p# c# i% q7 M
  36. RewriteRule ^aboutus\/$ public/about.php?part=aboutus
    2 j- @& B3 F  [* z- t: a) D* c
  37. RewriteRule ^aboutus-id-([0-9]+)\/$ public/about.php?part=aboutus&id=$1: p  B( I2 c; u) F2 y
  38. RewriteRule ^announce-page-([0-9]+)\/$ public/about.php?part=announce&page=$1
    # k% k3 V) u) f. t- Q
  39. RewriteRule ^announce-id-([0-9]+)\/$ public/about.php?part=announce&id=$1
    $ c4 R1 `9 L& p) k% l. J
  40. RewriteRule ^faq\/$ public/about.php?part=faq
    / c+ G" E6 K; @/ X- A# t
  41. RewriteRule ^faq-id-([0-9]+)\/$ public/about.php?part=faq&id=$17 S  s; S* T( Q) W9 y6 w4 w; r
  42. RewriteRule ^friendlink\/$ public/about.php?part=friendlink
    # l* t+ H- ?$ E0 m
  43. RewriteRule ^friendlink-action-apply\/$ public/about.php?part=friendlink&action=apply
    8 ^: X  j+ p+ }+ h
  44. RewriteRule ^guestbook-page-([0-9]+)\/$ public/about.php?part=guestbook&page=$12 q( C* c, I/ s3 L) P4 K
  45. RewriteRule ^guestbook-action-write\/$ public/about.php?part=guestbook&action=write
    $ P8 o" N' B% X3 T7 }
  46. RewriteRule ^space-([a-z,0-9\-]+)\/$ public/space.php?user=$1
复制代码
9 `2 k8 D* M4 ]& {9 h! n4 c

0 j/ N6 S  v4 k2 n* Y, A8 B: D6 k3 e
1 a* U- H& b# ^$ P) ]0 W( D  E把上面代码保存为   .htaccess 放入空间根目录,就可实现- X4 i4 o; P4 K2 U4 x7 o
# b/ m, Z% [0 M& f
演求http://www.wfclass.cn
4 n; Z6 i( ~0 W; H, Q9 z
  D5 i5 B6 ^8 ]! k( a/ X1 N另本站pr=2 求同PR友情链接,请到本站申请 ,欢迎合作!
作者: 蒋文明    时间: 2009-10-29 08:15
挺不错啊 、支持一下 了




欢迎光临 蚂蚁CMS论坛 (https://bbs.mymps.com.cn/) Powered by Discuz! X3.2