砍敺 IT_man 2014-12-25 11:19 蝺刻摩
6 \- ^, Z z. ?- X# U o: O y4 u
冽迨Host server閮剖Discuz 敺啗身摰
. h1 _8 _0 z5 s d6 IHost server閮剖 Web server蝡唳寧桅銝.htaccess
4 Y( j9 D, b$ ?3 E0 \ Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿
$ O5 C9 R7 \" D1 I0 Z3 n1 x: o' h1 d! `7 W
蝡唳寧桅銝.htaccess- # -FrontPage-# c- d' s1 f5 y! |
- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
( P2 ~- L7 r4 q7 I' M2 I - # disable directory browsing# \/ M3 H/ n8 B: c& u) g2 I' s
- Options All -Indexes
5 {5 _0 G% e+ u8 ~, E! u - RewriteEngine On # 撠 RewriteEngine 璅∪
3 R( v+ Z$ ^5 J$ }3 ?0 }+ p - RewriteBase / #閮剖箇雯蝡寧桅! A+ B* b3 }' g1 H/ k) ~
- #
" a6 h: Y$ l* z/ A - RewriteCond %{HTTP_HOST} ^av4u.info [NC]
* H4 k" K0 z$ @2 \2 X* K2 J - RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1 E& ~+ ?6 U' }% x& t, e
- RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1$ B: e: J* k4 G# Q3 a
- RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
+ x$ L' J8 V9 o9 z ~, t' d3 Q - RewriteRule
* f& o2 g0 ]0 S* J E0 y) h - ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$
4 F% E T# `- c2 m - forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1- F# n6 K9 Y6 X
- RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1/ M/ r* J1 x. q9 B4 f" R& i8 a7 O
- RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1- d. [/ A: Y& X+ q. H
- RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
7 t$ @3 r# n/ S; @3 o& k - RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌
4 F7 |8 n! P- e5 S # b, {% b5 D9 L) j
Discuz 敺啗身摰 敺->典->SEO閮剔蔭->URL
5 m$ k6 J: o9 X7 t1 o. W
; F8 h, ]* u7 I. \3 h p
臭誑券豢靘蝬脩閬暸
$ }( E6 L' s# h0 k3 `+ [8 b3 U7 g1 u/ t9 \5 b. V% O7 q
|
|