砍敺 IT_man 2014-12-25 11:19 蝺刻摩 0 D. u+ Y, |# o9 R# z( }# t
/ J1 M! ]# F6 c6 L5 e冽迨Host server閮剖Discuz 敺啗身摰
) b1 n3 H0 _+ g+ qHost server閮剖 Web server蝡唳寧桅銝.htaccess' k! s7 q$ a( s: t
Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿
' W, P! L6 ~8 Q, i2 s9 n
0 E5 U4 e/ p, W% y7 I% D: l 蝡唳寧桅銝.htaccess- # -FrontPage-
E8 Y1 X9 ^: ` - IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* / Q8 G5 ~& O" ~
- # disable directory browsing
% a- ]7 q5 {, D" u& ~9 c - Options All -Indexes
6 C; I$ [4 s1 S - RewriteEngine On # 撠 RewriteEngine 璅∪$ ]1 s$ `. ~' a6 x. | {
- RewriteBase / #閮剖箇雯蝡寧桅9 d- C3 \: u, L8 S
- #
2 y) G4 ~9 c1 Z& G% Q - RewriteCond %{HTTP_HOST} ^av4u.info [NC]
4 g9 Q( B- A4 x2 _5 g/ f - RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
8 j# R9 h# J) y+ }5 _3 ~ - RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1% |$ i& b& s. y+ _9 F. \0 E! H
- RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
( t6 T: G7 V+ G - RewriteRule a5 K' J3 X7 N, F# D( D
- ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ 7 ~" e0 Y3 Q/ @9 ~+ i+ k8 v
- forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1. I( t, a' r* b, N. Z) ]6 @5 p% ~7 [
- RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%11 t2 T0 F3 z; H. I* q
- RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
; V" D" `) Y5 k# a% f - RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
* g L7 s' d& I) N% X - RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌
7 {& X8 y* ^8 ~' d1 y @ 1 K0 \1 E, [ |
Discuz 敺啗身摰 敺->典->SEO閮剔蔭->URL- ]7 a+ E8 Z5 S6 D# {; E$ l
6 Z$ \/ S0 j: J ^9 N4 A2 D
臭誑券豢靘蝬脩閬暸8 c# a6 ?1 c0 y# x
7 F1 W8 ^- i* p e# o( i; r/ Z# \ |
|