砍敺 IT_man 2014-12-25 11:19 蝺刻摩
& l5 o" w' M( H' m! ?! E2 l
( V! ~ U# z" B* P冽迨Host server閮剖Discuz 敺啗身摰6 B" W% a- e* M% I ~5 f
Host server閮剖 Web server蝡唳寧桅銝.htaccess
0 ?/ y7 w' A" ]6 b/ b Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿
# P# ~5 B# t" u- K! w* [. K# T' O2 A/ D
蝡唳寧桅銝.htaccess- # -FrontPage-
+ W/ T5 C" p' h* f - IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* 9 S& \6 L, K. [0 j9 l
- # disable directory browsing
# Q# p M( G- N4 B8 j# \3 C, Y - Options All -Indexes
6 ]+ o8 [' i( A7 \8 C - RewriteEngine On # 撠 RewriteEngine 璅∪
* }/ O+ i( K9 b t2 E( z- ?) P - RewriteBase / #閮剖箇雯蝡寧桅
/ \3 }& I" \& T- Z3 ~; S - #0 c, P" r1 a* b& g: Y: i! }; Z- x
- RewriteCond %{HTTP_HOST} ^av4u.info [NC]) b1 }& M9 M: ?# W( Q2 P- p+ R
- RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%15 j7 E0 C1 _# D# \8 V
- RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
$ h/ G" D7 _7 i( m" v' b7 V - RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
$ v% _ |2 A4 O" k9 h' p+ [ - RewriteRule
1 D! [; q/ @1 a% l - ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$
; Y$ N7 B6 [4 T; `3 V) D - forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%10 [# U1 U7 X! M' ]
- RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1% }: y6 t6 ^% ?- E
- RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
$ ?8 |: }* ?! J2 s% k1 z Q( N: q - RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%10 w' r5 E$ R. i# j- ]' A9 {
- RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌0 j3 d8 e+ Z+ p$ a# A3 L3 \- j
$ }* |- \! @1 {" m( U
Discuz 敺啗身摰 敺->典->SEO閮剔蔭->URL
1 A& d/ C" z3 }' f$ p( `+ R3 c
2 `$ t$ D$ _& k9 }0 Z( E& g臭誑券豢靘蝬脩閬暸
$ A* B$ j) |! d( E% x8 K: i
" y$ C C' `6 q9 j% ^& \+ {+ a |
|