砍敺 IT_man 2014-12-25 11:19 蝺刻摩
4 E* h1 e0 c. V6 y4 U" f( q1 y" w" a7 L U7 p
冽迨Host server閮剖Discuz 敺啗身摰* _& M7 ]. A! P8 f1 F
Host server閮剖 Web server蝡唳寧桅銝.htaccess
7 X) k @3 K2 z! |2 M# o# P Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿& N* P ?0 r9 P2 X7 D2 g6 z
6 H. Y, K- m! r. @) H6 H8 w4 }7 v+ d
蝡唳寧桅銝.htaccess- # -FrontPage-& @+ M7 Y7 j0 o' y; ^% o$ z
- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* % O& f, i! y8 g% G% \/ L3 h
- # disable directory browsing3 |" n7 }1 ?) x% @
- Options All -Indexes i" [* N; U0 E
- RewriteEngine On # 撠 RewriteEngine 璅∪
+ q' C: g2 e/ i" s - RewriteBase / #閮剖箇雯蝡寧桅
L3 B! U1 O" T) w( S+ v, W - #0 A+ G1 b6 l+ F0 V3 a
- RewriteCond %{HTTP_HOST} ^av4u.info [NC]
* r: h( P, f' p' b- i( a! H - RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%19 z9 x6 M1 T4 p# H$ }6 \
- RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1* R- w6 s; b2 r U+ S
- RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
+ ^1 q) A- X2 ^' P: H6 R: g! _% w - RewriteRule+ k/ P3 l9 c- a
- ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ / q9 k9 {0 L6 w, m6 \8 J
- forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
# L9 V" [+ u1 r2 l% z3 j3 e, O - RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%15 a6 D: A6 C0 g( j. W4 _8 E
- RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1. {2 s' C7 o0 S0 G5 A! l! V& L
- RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1" [$ d2 e' y8 V$ V( a+ ^) Z- q
- RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌
8 B- Q6 {# P; N5 J5 G$ f$ [* S - V! r& y- W/ e0 {
Discuz 敺啗身摰 敺->典->SEO閮剔蔭->URL
0 S0 K+ z8 D) D- H/ H( [
4 k! ^6 J/ Z9 A# Z( j臭誑券豢靘蝬脩閬暸6 \0 U+ r" H; P$ H3 I$ P; ^! f
6 d/ |/ b7 q2 r1 {4 ?
|
|