砍敺 IT_man 2014-12-25 11:19 蝺刻摩 - O. O- e- v; W5 P
* Z: N! s& M* E冽迨Host server閮剖Discuz 敺啗身摰( W5 Q& C9 d4 ~9 F! _
Host server閮剖 Web server蝡唳寧桅銝.htaccess
4 \# X% M/ U6 Y1 X! I Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿
7 w: {$ \! U9 w% B+ I
! Y6 F2 m" y5 [, P 蝡唳寧桅銝.htaccess- # -FrontPage-
: b0 _: y% p# g$ T' c4 e - IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* 4 L# ~/ U/ y$ O5 ^; Y0 `
- # disable directory browsing+ \. W# M; n3 D& R. z( t8 m3 Q
- Options All -Indexes
; [, b1 e/ R! Q: L ]3 _4 ` - RewriteEngine On # 撠 RewriteEngine 璅∪2 `6 Q2 s" K5 S9 Y. `5 D
- RewriteBase / #閮剖箇雯蝡寧桅; U! l1 @1 c% Y; ^, ~3 w
- #
! p/ F2 H9 M' J& e+ F( N, w - RewriteCond %{HTTP_HOST} ^av4u.info [NC]
% x! N8 T- \% V$ |& t! { - RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
% \8 z+ Y# U2 s - RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
! X; V Z) I# o: P7 o - RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%13 W: Q3 _# @0 g% [) b7 P, t
- RewriteRule
+ Y' ]" W9 x' W - ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$
& x0 ]: B4 @1 T0 S5 ^3 \ a - forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1. F, T6 d- j- x: x5 ]* K, ?
- RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
# Z5 m! V! {8 A: X0 f7 y+ v - RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%16 Q/ n: v8 @$ Q1 F8 P
- RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
- t. b% [ q/ Q. O8 I - RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌, d% | t! k& z
: H1 K7 {% C$ p
Discuz 敺啗身摰 敺->典->SEO閮剔蔭->URL' X- ^( W% q1 N7 y$ ^
& D8 L. v5 e& [9 D4 O& U臭誑券豢靘蝬脩閬暸* X, Y& X: u# k+ I# g: S
0 G/ l# G: B& Y5 w) j
|
|