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

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

[复制链接]
跳转到指定楼层
1#
发表于 2009-10-29 08:02:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  1. ( D$ }7 J1 G, K3 P
  2. deny from all
    8 o" N; _$ Z) Q/ D; n$ o- M; \
  3. $ V! q/ A0 k) Z0 z) p
  4. Options -Indexes7 ]: G9 Z2 f; n9 [* p6 U6 _. s
  5. ErrorDocument 400 http://www.wfclass.cn/404.html
    ' V# v0 @& d3 K+ W" @( M9 g
  6. ErrorDocument 401 http://www.wfclass.cn/404.html
    : A" I. p+ T' H8 ]; {% b% w( @. N
  7. ErrorDocument 402 http://www.wfclass.cn/404.html9 F5 ?& u. f: e5 q) w; T
  8. ErrorDocument 403 http://www.wfclass.cn/404.html$ t/ o. Q0 L4 a  D8 K9 q3 ^
  9. ErrorDocument 404 http://www.wfclass.cn/404.html
    - {& k. _8 W: E! `6 v; T: x# n0 g
  10. ErrorDocument 405 http://www.wfclass.cn/404.html
    3 {4 C. p" j1 i7 g6 g+ T: t5 g
  11. ErrorDocument 406 http://www.wfclass.cn/404.html
    3 S% ]: K' g+ h6 s" |3 g
  12. ErrorDocument 407 http://www.wfclass.cn/404.html
    & q( m7 Q2 o# V( e; ^9 P
  13. ErrorDocument 408 http://www.wfclass.cn/404.html
    7 S% C5 ^5 L+ x- P" ~5 R5 q. P4 p( c
  14. ErrorDocument 409 http://www.wfclass.cn/404.html/ e# R( P4 [* ], A5 `
  15. ErrorDocument 410 http://www.wfclass.cn/404.html
    4 \( R5 X* V: E8 a& A# [
  16. ErrorDocument 411 http://www.wfclass.cn/404.html, c, M) g. o3 e# P
  17. ErrorDocument 412 http://www.wfclass.cn/404.html
    + r; U. L) ]5 Z- i6 {: j% Z- e
  18. ErrorDocument 413 http://www.wfclass.cn/404.html8 H- q) {( D! G/ X2 s
  19. ErrorDocument 414 http://www.wfclass.cn/404.html
    - h% {7 t" i; z9 P
  20. ErrorDocument 500 http://www.wfclass.cn/404.html8 B+ a1 l) F, u( h7 I4 O
  21. ErrorDocument 501 http://www.wfclass.cn/404.html
    9 D# x% C1 H$ @) h0 J; |5 I
  22. ErrorDocument 502 http://www.wfclass.cn/404.html
    # X4 D2 z+ ]6 E2 J
  23. ErrorDocument 503 http://www.wfclass.cn/404.html
    4 ]. v. h" B( D/ k& I  J# o
  24. ErrorDocument 504 http://www.wfclass.cn/404.html
    : ]8 i% R& H6 r3 ~; T" {
  25. ErrorDocument 505 http://www.wfclass.cn/404.html: K; n- V; F5 C- U( ]& D0 J
  26. order deny,allow- S5 \! e' M, |! f. k! g

  27. ! c* l6 j+ K7 {2 _
  28. 2 ]' X5 E, C6 m  Q
  29. ) e' }! E' p0 p8 w" a7 k
  30. RewriteEngine On
    ! ]' z( h0 D! p% V8 V! q! |
  31. RewriteBase /
    " \) N' M9 c1 b8 ]* H5 U9 l
  32. RewriteRule ^info-id-([0-9]+)\/$ public/info.php?id=$1
    & F: y* M' E9 L4 V; \
  33. RewriteRule ^info-page-([0-9]+)\/$ public/info.php?page=$1/ m4 b4 b5 p# p& I( I
  34. RewriteRule ^info-catid-([0-9]+)-page-([0-9]+)\/$ public/info.php?catid=$1&page=$2
    6 q; P: j+ Y+ Y0 v
  35. RewriteRule ^info-catid-([0-9]+)-areaid-([0-9]+)-page-([0-9]+)\/$ public/info.php?catid=$1&areaid=$2&page=$3+ n% b; j* H1 H. w; E$ B
  36. RewriteRule ^aboutus\/$ public/about.php?part=aboutus- @$ C) T0 x; V
  37. RewriteRule ^aboutus-id-([0-9]+)\/$ public/about.php?part=aboutus&id=$1, u: q1 r( t3 W- h4 L3 r
  38. RewriteRule ^announce-page-([0-9]+)\/$ public/about.php?part=announce&page=$1
    4 s: E# m6 J. P: p+ F" f$ r
  39. RewriteRule ^announce-id-([0-9]+)\/$ public/about.php?part=announce&id=$1- v0 ~! v: M9 x% l: U
  40. RewriteRule ^faq\/$ public/about.php?part=faq2 }' }7 p" i0 Z, C
  41. RewriteRule ^faq-id-([0-9]+)\/$ public/about.php?part=faq&id=$12 B3 a7 o& n2 b3 P: _8 A
  42. RewriteRule ^friendlink\/$ public/about.php?part=friendlink
    $ t/ D& Z$ H% Z6 o' Y# \* ]6 @/ a# \
  43. RewriteRule ^friendlink-action-apply\/$ public/about.php?part=friendlink&action=apply
    . L! s+ U5 }; A" b; @6 _# o
  44. RewriteRule ^guestbook-page-([0-9]+)\/$ public/about.php?part=guestbook&page=$1
    * J' B  k6 B; e6 y% w0 I: f
  45. RewriteRule ^guestbook-action-write\/$ public/about.php?part=guestbook&action=write0 U( b8 `5 c" K
  46. RewriteRule ^space-([a-z,0-9\-]+)\/$ public/space.php?user=$1
复制代码

5 l6 E8 r% d4 _9 W/ q5 a8 n- f
% U! H+ h* h, e- K4 m4 h$ P/ D+ Y* s% Z
把上面代码保存为   .htaccess 放入空间根目录,就可实现
8 |4 k1 n( S5 F' P8 [  j5 v9 ~) V7 |8 Z! q, r- V6 Q
演求http://www.wfclass.cn
' q  ]2 [0 k9 l, ~/ O, ~9 Q* K# H6 {& i% H5 t  `3 B7 n/ r1 i
另本站pr=2 求同PR友情链接,请到本站申请 ,欢迎合作!
2#
发表于 2009-10-29 08:15:22 | 只看该作者
挺不错啊 、支持一下 了
您需要登录后才可以回帖 登录 | 注册蚂蚁CMS论坛

本版积分规则

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


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

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