砍敺 IT_man 2014-12-25 11:19 蝺刻摩
$ o, S. y: O: d5 W( J) l$ C1 o) n4 V/ ^) r( a5 E
冽迨Host server閮剖Discuz 敺啗身摰5 {5 V- M* x4 ~
Host server閮剖 Web server蝡唳寧桅銝.htaccess
- h' g/ i+ @2 j Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿
/ M7 C4 F) Y l7 W- h0 W4 l0 H- T7 v% p# @
蝡唳寧桅銝.htaccess- # -FrontPage-
% d. D$ @. r0 j# H" Z7 ] - IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
" }5 [1 w6 B7 G' W2 \! T - # disable directory browsing
6 A A! Q) H8 m+ f/ e - Options All -Indexes
3 g$ @2 z3 a/ r0 s4 ] - RewriteEngine On # 撠 RewriteEngine 璅∪% ` |: |7 C% ?0 R. d
- RewriteBase / #閮剖箇雯蝡寧桅
4 `. t% o* j8 u1 {. a - #
+ l8 k4 r$ N, j) z: F - RewriteCond %{HTTP_HOST} ^av4u.info [NC]" V, C, ?# w2 q9 U) T: `
- RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
7 z, c( ]9 j" D! j, \ - RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%10 B: U7 `0 {- V; s4 Y
- RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1. f( }; t# ]& F4 |# C0 _' w
- RewriteRule
1 s: T8 }2 z9 u" n* W3 q1 K: R3 X - ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ + Y. g% |+ G$ y' v, p8 q
- forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%15 u3 W( y) y3 C
- RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1, l; ]) p0 M7 J7 j8 ]# X [/ k
- RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%12 C2 a3 `* h2 e
- RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%15 u( D0 \9 S& i) c& _3 u5 z
- RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌
+ l- K4 ~' f7 L# h0 O - N8 u6 s4 j! K% f2 ~% s
Discuz 敺啗身摰 敺->典->SEO閮剔蔭->URL Y% c$ l- w2 J0 Z
0 y, o. Y$ A+ u8 B
臭誑券豢靘蝬脩閬暸
" y# n' c! P; }" e+ p! T/ R8 N0 }/ f! c3 z, Z. I1 K& m4 L d: I* b
|
|