砍敺 IT_man 2014-12-25 11:19 蝺刻摩 " b* N: X+ @ x0 B7 O
/ F6 l. @2 W- t* s# A/ d冽迨Host server閮剖Discuz 敺啗身摰0 d) }9 T8 q4 O; D$ c
Host server閮剖 Web server蝡唳寧桅銝.htaccess
^2 }5 R- f5 [1 a3 Z5 w8 a Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿
1 t8 i4 N' p/ v: I
/ b2 K: s `0 Y3 N 蝡唳寧桅銝.htaccess- # -FrontPage-
9 w5 p6 D' a4 O9 u4 K4 ]6 ~ - IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
" |4 T8 ?! O \- O/ F! v2 { - # disable directory browsing& {& ]7 o: l- B
- Options All -Indexes
# F# }9 a0 I: U9 e( C - RewriteEngine On # 撠 RewriteEngine 璅∪
; K9 b% ?7 Q. p3 ?& T5 D( c$ N+ i - RewriteBase / #閮剖箇雯蝡寧桅
' c: y" p% h) j' n - #: `5 Q, G# c4 I. M4 g
- RewriteCond %{HTTP_HOST} ^av4u.info [NC]
3 Z g5 E1 q h# r/ Y - RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
2 _. ?7 Y. w9 P- R, ~5 G! j - RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
+ T7 N: I( Y7 l - RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
' ^* }4 W7 x8 H2 h N% B; U$ y/ W - RewriteRule
) ]5 B0 a% F% b9 f - ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ 9 ]+ {: g& X0 j, K* A9 @( q. b
- forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1% E* P* t/ x7 B# Q. @
- RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%15 j; x3 ?. n( w6 {' R$ s
- RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%14 z6 y7 w/ r5 h- ~/ G- J
- RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1+ j u7 x( M% ]6 T1 u( w% G
- RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌8 k% D+ w k/ U+ L9 F( t% d
5 N) S) Z [: A Y6 ?/ HDiscuz 敺啗身摰 敺->典->SEO閮剔蔭->URL& ^( @, y/ o% m: c9 [, G; R
! |7 j' \7 I/ m
臭誑券豢靘蝬脩閬暸8 B" o' Z7 d. {+ W3 c7 M
9 t5 o2 t( Z, x: K8 ^$ N+ d5 ]; `
|
|