砍敺 IT_man 2014-12-25 11:19 蝺刻摩
: V* L7 f2 b, V8 O" k/ t7 u6 G5 Q% b9 Y% ?* |; s9 S
冽迨Host server閮剖Discuz 敺啗身摰6 [- U% V, U7 l$ ]) W
Host server閮剖 Web server蝡唳寧桅銝.htaccess
# d- ?4 w; v2 k Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿1 W z6 R e& K* B7 Y9 H
$ E6 U3 B8 U5 Z5 v9 b6 l: | 蝡唳寧桅銝.htaccess- # -FrontPage-! f! s: v" u. P! {# k
- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* ; h( ~1 d- Z% I4 B' @
- # disable directory browsing" a- ^* f* M: u, f5 m3 f
- Options All -Indexes; m2 b* c. k8 @% {1 S8 g" D0 Q
- RewriteEngine On # 撠 RewriteEngine 璅∪
' P2 J1 X# Z% s& _5 d/ w/ [ - RewriteBase / #閮剖箇雯蝡寧桅
1 e1 V d" Q, n1 p - #. o ^2 g4 b, R$ y1 [
- RewriteCond %{HTTP_HOST} ^av4u.info [NC]9 j4 P7 v, J+ v
- RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1/ ?2 D) s3 i4 {1 X9 g! d
- RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
8 i$ v- A4 l- ]8 v" Z - RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
, S& d& t1 _8 b h( q# o1 p4 y2 o - RewriteRule5 Y2 [0 X1 q3 V: Z( a
- ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ ! A5 h F2 L1 \6 h9 v& c, ~
- forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
9 X+ ]$ Z' p, e# s - RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1, t! P f& a3 s7 |$ q N2 P# ]& _
- RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
* w3 s2 z# L9 V; @/ I f5 f - RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1) P4 c3 T5 K1 V% r$ d
- RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌
- c# o1 I9 a" H7 t' y7 c( j; {
& ^" E: g' t8 x5 q5 k0 UDiscuz 敺啗身摰 敺->典->SEO閮剔蔭->URL; i: R% w1 {8 Q& E/ R0 A
! D I( W$ N5 H' S2 B0 N. a臭誑券豢靘蝬脩閬暸
$ j: K& A/ {4 n5 N- c w# i x( }, [
|
|