砍敺 IT_man 2014-12-25 11:19 蝺刻摩
. B3 M% j$ Q8 d" s: K
e# A f! d. w冽迨Host server閮剖Discuz 敺啗身摰. ^- L5 r. f0 o
Host server閮剖 Web server蝡唳寧桅銝.htaccess/ p8 ~' x F/ I2 ?/ S
Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿
- t; W3 B' w/ X4 s# _$ L( ]0 k- X' c2 `3 g: s! \* Y
蝡唳寧桅銝.htaccess- # -FrontPage-) a# x3 M7 O8 ~; D1 \0 g
- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
* i' R0 Q; k- T3 I$ D6 q - # disable directory browsing
4 U4 ]* t4 V1 _* _$ k; d - Options All -Indexes
3 l7 m2 d* h( Q" |' |5 R - RewriteEngine On # 撠 RewriteEngine 璅∪1 b7 K* i0 t! \0 ~' \# o; |, k. o
- RewriteBase / #閮剖箇雯蝡寧桅
+ Y! f K# r( P7 M - #
" }* z* _6 ^1 |+ U1 o' ^2 H - RewriteCond %{HTTP_HOST} ^av4u.info [NC]5 W# h2 ?9 h$ r" d
- RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%13 m7 Y5 q2 h: G3 f* y' O
- RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1& L+ g; {- ~9 j1 _: M
- RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%15 w) ~7 r& L3 l% ~
- RewriteRule
( Z) K7 y) z& Q4 Z6 I r$ [5 E - ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ , f2 x* h" o( V
- forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%19 t" ^# ^$ C$ R: p" ~4 f' r
- RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%18 {, s- m9 ^6 ]8 A2 k: O/ f
- RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%18 C0 s# Q. C5 T9 u7 _
- RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1' N, V* t. E3 F5 a; L
- RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌
# t) g$ ]' }& j. A& L% ^6 Q: B4 L - o1 d# p: u, b& Z% S. n+ o
Discuz 敺啗身摰 敺->典->SEO閮剔蔭->URL
$ e; R8 L( J+ `# w9 c, z
( h2 Z3 e, O3 C
臭誑券豢靘蝬脩閬暸1 y; Z) P# p3 W1 O9 B# q) F; |
5 V! m5 V. ]6 L/ e! w( r |
|