砍敺 IT_man 2014-12-25 11:19 蝺刻摩 3 T* X2 K! Q* y$ T% X" q- O
& N) t8 I# a- b. A$ Z3 R9 Q
冽迨Host server閮剖Discuz 敺啗身摰
2 n# [9 X4 P0 }7 }4 gHost server閮剖 Web server蝡唳寧桅銝.htaccess
( M, ~+ R' V) {4 w6 V% A Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿
" a, T" F' G% a2 p4 q3 }( [/ I" `+ g& H
蝡唳寧桅銝.htaccess- # -FrontPage-% ]: J+ h* a$ x0 c7 R5 ^3 ^8 g$ A
- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* " O# T B2 R$ q* H5 \3 z& Y
- # disable directory browsing- j/ u5 Y) P4 Q1 K
- Options All -Indexes
3 _4 x& t$ p6 Y) D- n$ x - RewriteEngine On # 撠 RewriteEngine 璅∪1 y- O$ M) W+ [" u; ]
- RewriteBase / #閮剖箇雯蝡寧桅9 E9 d8 ] k6 x
- #
" P7 Z% }6 U$ D9 P# L1 B - RewriteCond %{HTTP_HOST} ^av4u.info [NC]
8 m* \% f: R4 k8 B' X. y3 C - RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
' c! x+ |6 U- E! a. } - RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
6 u K9 Q* {' g. `1 U( l9 t+ g - RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%15 L2 @ B3 a9 n/ u
- RewriteRule. O0 K. C& c( {# c, n$ u9 ~
- ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ 0 d& Z" I" d6 @. K( Y
- forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
: y1 J' W) O/ }( F& O( K# _ - RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
U/ ~6 c2 Z9 ^ - RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
3 v- R0 V( M1 \* b' h% G* r( F - RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
8 ~7 D) N9 x& S* q [# ^3 v0 T - RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌
: y+ M+ U4 A* m) E; n1 Q 0 K, @6 _5 Z3 L% J+ J+ {: i
Discuz 敺啗身摰 敺->典->SEO閮剔蔭->URL
! D2 z% e7 O0 v6 N
8 a5 x# J% H6 V/ V. B# |* N+ [& S臭誑券豢靘蝬脩閬暸: N$ n- j4 k+ g9 J& |8 H! r
7 Z- ?! J3 s* t) m5 g. f" d |
|