蚂蚁CMS论坛
标题:
门户通伪静太和404错误转向
[打印本页]
作者:
liuxing8z
时间:
2009-10-29 08:02
标题:
门户通伪静太和404错误转向
" @( @) l- H: k! b& [ Z
deny from all
/ W5 @& V' @& n$ [, u2 w3 S
" h- U+ T( C8 K4 ^- X
Options -Indexes
# b: F; C3 [# c5 W
ErrorDocument 400 http://www.wfclass.cn/404.html
z) l* M2 ^+ R" c, f: G9 ]4 C* s ^, L
ErrorDocument 401 http://www.wfclass.cn/404.html
! n# v3 p' S6 A7 h9 [5 Q
ErrorDocument 402 http://www.wfclass.cn/404.html
2 J+ d/ X' [- z
ErrorDocument 403 http://www.wfclass.cn/404.html
}* @# N- e5 d4 E+ H) M" z
ErrorDocument 404 http://www.wfclass.cn/404.html
; Z5 V+ [0 c( `( b
ErrorDocument 405 http://www.wfclass.cn/404.html
7 f( c( X- b( Z, T% n- p
ErrorDocument 406 http://www.wfclass.cn/404.html
* x# _* a( Y7 ~
ErrorDocument 407 http://www.wfclass.cn/404.html
; K0 J, F; T/ ~' {3 Q% i& q2 p
ErrorDocument 408 http://www.wfclass.cn/404.html
9 S- f+ w4 r3 M$ J
ErrorDocument 409 http://www.wfclass.cn/404.html
, f* a3 A; j1 m. [* t3 U
ErrorDocument 410 http://www.wfclass.cn/404.html
% W5 N$ b) `% H# u2 |
ErrorDocument 411 http://www.wfclass.cn/404.html
. t5 B* \1 W0 v$ `/ S, B
ErrorDocument 412 http://www.wfclass.cn/404.html
: D& R Z1 U0 ]9 r! M
ErrorDocument 413 http://www.wfclass.cn/404.html
% C5 x) `# g) _# b' ^7 m6 J% t
ErrorDocument 414 http://www.wfclass.cn/404.html
# i) a$ Q! z6 k* \
ErrorDocument 500 http://www.wfclass.cn/404.html
5 `, |; r6 `5 Q5 d6 A
ErrorDocument 501 http://www.wfclass.cn/404.html
# ]/ ]* K" h7 c& m' u( c, C
ErrorDocument 502 http://www.wfclass.cn/404.html
; y% X' X6 W9 m7 G- t5 e$ z9 w7 G
ErrorDocument 503 http://www.wfclass.cn/404.html
7 V% `4 u/ x/ u, s0 i2 t' i9 f. m
ErrorDocument 504 http://www.wfclass.cn/404.html
$ x( }) L3 u O4 X! N
ErrorDocument 505 http://www.wfclass.cn/404.html
3 }9 x; m& l8 \2 |1 s( K! `
order deny,allow
. H) W1 w* H1 \3 Z
* h; i6 b6 |) K. `, W' c
+ D$ B% _ Q. `, K7 ` s4 Q
7 a( M0 F- Q6 l7 K. R% ]1 m- F
RewriteEngine On
0 d4 l5 S- u2 g5 n
RewriteBase /
S' O/ s& }3 K( m: M
RewriteRule ^info-id-([0-9]+)\/$ public/info.php?id=$1
! z2 P/ h$ s6 m# X: ^8 j
RewriteRule ^info-page-([0-9]+)\/$ public/info.php?page=$1
$ m% Q# v5 g3 x; T# x1 n4 X% x! \
RewriteRule ^info-catid-([0-9]+)-page-([0-9]+)\/$ public/info.php?catid=$1&page=$2
; `0 B' b4 n- x @
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
RewriteRule ^aboutus\/$ public/about.php?part=aboutus
2 j- @& B3 F [* z- t: a) D* c
RewriteRule ^aboutus-id-([0-9]+)\/$ public/about.php?part=aboutus&id=$1
: p B( I2 c; u) F2 y
RewriteRule ^announce-page-([0-9]+)\/$ public/about.php?part=announce&page=$1
# k% k3 V) u) f. t- Q
RewriteRule ^announce-id-([0-9]+)\/$ public/about.php?part=announce&id=$1
$ c4 R1 `9 L& p) k% l. J
RewriteRule ^faq\/$ public/about.php?part=faq
/ c+ G" E6 K; @/ X- A# t
RewriteRule ^faq-id-([0-9]+)\/$ public/about.php?part=faq&id=$1
7 S s; S* T( Q) W9 y6 w4 w; r
RewriteRule ^friendlink\/$ public/about.php?part=friendlink
# l* t+ H- ?$ E0 m
RewriteRule ^friendlink-action-apply\/$ public/about.php?part=friendlink&action=apply
8 ^: X j+ p+ }+ h
RewriteRule ^guestbook-page-([0-9]+)\/$ public/about.php?part=guestbook&page=$1
2 q( C* c, I/ s3 L) P4 K
RewriteRule ^guestbook-action-write\/$ public/about.php?part=guestbook&action=write
$ P8 o" N' B% X3 T7 }
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