砍敺 IT_man 2014-12-25 11:19 蝺刻摩 # q) }3 P; Z# |2 p8 O: E: T# {1 A: f
y" }8 s+ T$ D冽迨Host server閮剖Discuz 敺啗身摰" p1 x) f4 B, Y7 a5 L7 Z
Host server閮剖 Web server蝡唳寧桅銝.htaccess
7 G0 F8 [# p7 |, L6 ^ Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿
4 V% M( Y; e# k2 b+ \. j. M% E
% x( m7 _1 R6 y+ ~. \ 蝡唳寧桅銝.htaccess- # -FrontPage-! [: K! t3 h3 W# s6 v+ I( a
- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* 6 _2 @- e! c/ w
- # disable directory browsing' c/ Z) h) G3 y0 N
- Options All -Indexes
% `- s8 c, _7 E% J- \$ v7 m - RewriteEngine On # 撠 RewriteEngine 璅∪8 n/ h% p' u0 w, A8 b
- RewriteBase / #閮剖箇雯蝡寧桅
/ R5 x+ {& e3 ^# z) L$ {6 \ - #
7 i" H7 p6 u$ S - RewriteCond %{HTTP_HOST} ^av4u.info [NC]
" Z- E& t) X- M - RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%16 a# ^3 Y, w, @/ W% o
- RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
" z- k7 ?9 e" H. v2 K# w1 M, T) @5 H* U$ h - RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
. v5 z9 [7 A; i* q2 ?0 `6 ^ - RewriteRule& v' j) t" Y$ a, Z! t1 @3 f X
- ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ # j+ I- M0 Z) m! B$ x& L' D- T
- forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
# k% s2 h% l! P - RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1" i; t1 G! W& N m! h+ O
- RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
6 f; J+ ~6 }" ~; j w( ^ - RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
, n7 v9 A, M. C' {/ j8 w2 L4 V - RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌
5 H q8 l" L% ]9 u( g& c $ d( Q$ n1 ~9 K0 r. P4 ~
Discuz 敺啗身摰 敺->典->SEO閮剔蔭->URL' S' D8 {* Q( ?
8 H2 c* P2 J( V# j! F6 V臭誑券豢靘蝬脩閬暸
$ h. p# \7 C6 c" ]8 p& M/ N! G
" ]% F8 G7 I; C! Q$ C0 M* p |
|