砍敺 IT_man 2014-12-25 11:19 蝺刻摩
9 |3 V( D; f% V* l6 J( f2 h. @4 i4 f' i% W
冽迨Host server閮剖Discuz 敺啗身摰6 V7 @+ V$ x2 l# d+ v1 e. v
Host server閮剖 Web server蝡唳寧桅銝.htaccess
& Z2 m8 i( P/ h. O0 n Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿
1 `1 C6 l8 h" Y5 q0 G$ v8 b% j% H
蝡唳寧桅銝.htaccess- # -FrontPage-) P0 g5 M& X( u4 D
- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
$ u0 [* [) P2 M3 q. l6 ] - # disable directory browsing! C9 ~5 w8 Y4 ~' s; T' T
- Options All -Indexes. d# r* ?+ {6 O# h
- RewriteEngine On # 撠 RewriteEngine 璅∪
$ d, T! u* X3 b$ k2 v - RewriteBase / #閮剖箇雯蝡寧桅, z2 J! @& G1 L+ X
- #
+ w. m5 i3 B4 y1 M3 E( x2 A - RewriteCond %{HTTP_HOST} ^av4u.info [NC]/ X# b' z: ~/ [+ A# ]
- RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1, T( J' j0 F5 y
- RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
% V0 [% q; ^# e/ _$ S2 b" Y E. z - RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1' \ Q; E3 b" ]* F% d
- RewriteRule
- f* ]/ S2 _; F* _% V8 i- t - ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ 6 i# B& ?* q+ {' V8 ^7 @
- forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
) H! b& v) s) m* A4 Y3 ~ - RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
) q: s+ t2 |5 A. I* P - RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%11 t0 g# s9 d- \% C+ ~- c: K
- RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
( T% v5 o$ a5 D# {5 n+ n$ q3 k" j% T - RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌
`! a$ P8 m4 S) Z% E/ H " ]9 U1 ~& d& U4 ~+ @
Discuz 敺啗身摰 敺->典->SEO閮剔蔭->URL" m! ]- x; V9 ]- Z/ Z
( k8 A* M3 G% ]" q; @% E6 d9 ?
臭誑券豢靘蝬脩閬暸- L9 R4 e4 Q% ?! y
3 O3 c0 l9 j% o! p! X |
|