砍敺 IT_man 2014-12-25 11:19 蝺刻摩
% O: _/ g; E2 P# }) ^
( I- x+ X6 c$ \: ?4 }. M1 l冽迨Host server閮剖Discuz 敺啗身摰- y3 g: @9 ^9 g; M
Host server閮剖 Web server蝡唳寧桅銝.htaccess
( J4 O5 ?; Z7 Q7 [ {+ c1 a Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿
0 ?; F; N1 t! ?/ }' V3 b$ ^8 _& }/ T; m# j
蝡唳寧桅銝.htaccess- # -FrontPage-) l+ r( {6 i0 |
- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* 0 l" V" I3 I2 [+ r+ W: V
- # disable directory browsing/ D. t* h/ B( x6 O8 V
- Options All -Indexes
. u2 E7 f3 E k7 S - RewriteEngine On # 撠 RewriteEngine 璅∪" c8 u3 V8 Y$ g# T' {
- RewriteBase / #閮剖箇雯蝡寧桅 F3 N. j! ^# [8 _* G. K1 q
- #) w, l. c' G; F S9 n/ w" P' w
- RewriteCond %{HTTP_HOST} ^av4u.info [NC] [3 H Y* C7 C' I) U( w# S, ?
- RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%16 q! ]0 l# T' \4 _
- RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%12 D4 @+ c$ n: V( N3 [
- RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%14 ^7 r. k: ^; K0 B3 \/ A. V
- RewriteRule/ i' F5 l' U8 e ~; T
- ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$
" y% l+ |( Z9 N; Y3 y - forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
9 K$ d3 @$ U1 {: J' Q; H' M - RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
) G0 c! J) _, {2 u' _9 ]! d - RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%18 l) E4 c0 ]8 u
- RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
+ S+ }( u7 D# h - RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌
* |' i& ?/ P5 t4 j; Q 5 o* G1 x2 Y* F2 a2 a3 [0 r% R
Discuz 敺啗身摰 敺->典->SEO閮剔蔭->URL
! ?4 a7 r4 u4 t6 d9 |
* m' d+ d) P% i# j! a9 l4 k
臭誑券豢靘蝬脩閬暸: q6 u) R) f6 M6 y: k
4 j2 w# i9 {: u+ T+ _; k1 p+ e |
|