砍敺 IT_man 2014-12-25 11:19 蝺刻摩 0 q5 D( H) d ]9 P
5 S8 i; O. s% Y* Q9 g" b冽迨Host server閮剖Discuz 敺啗身摰
% q2 ?2 g; ?5 ~6 e; v6 F8 THost server閮剖 Web server蝡唳寧桅銝.htaccess
; k, ]9 Y, l0 W# g8 t! b, w& K0 M4 { Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿3 v5 @ {2 f9 {* J, j& p
0 x5 v! y9 i }( H# P, {
蝡唳寧桅銝.htaccess- # -FrontPage-
- K" B4 t: F5 D9 _/ p+ t - IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* / u, z( k9 i/ D$ q B
- # disable directory browsing
/ s) v; ^* o( c. O - Options All -Indexes
* |' u" B4 L! C( r. D5 F - RewriteEngine On # 撠 RewriteEngine 璅∪) x- B" k7 s2 F# v
- RewriteBase / #閮剖箇雯蝡寧桅) o0 }* P: ?9 e$ g* q- `4 c9 ]
- #+ R1 W) ?# F+ M/ u8 f( H) `5 K
- RewriteCond %{HTTP_HOST} ^av4u.info [NC]; B- H; D) j1 m0 I+ K' a! o
- RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
+ a( q+ O) ~+ r; g1 `9 x8 d - RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
* s+ d( w* h$ ~" B& o) `5 a0 p - RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
& v+ l* @6 ^6 x9 h - RewriteRule
* ?& C6 A' U. n W9 F8 T# O - ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ ) V! |/ `" q' N. ] N0 m0 V
- forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
, \! \/ a$ S0 c* n. p E/ J* ? - RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1: q0 O3 T5 @" H/ { M9 `# U
- RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1. A6 ~% O9 ~8 `5 y J& `
- RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1) E# ~4 ^( n r8 [' t5 j
- RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌
1 D: m S, P" F" x- c; i3 O' n* ^ 6 \0 p0 g( C2 Y
Discuz 敺啗身摰 敺->典->SEO閮剔蔭->URL! L# n( v1 r/ P: f
) E" w: [# t! K, Z w( [7 p! a# I1 Y臭誑券豢靘蝬脩閬暸3 Y5 E4 T$ g, X" X
( X& L4 f1 a1 v
|
|