砍敺 IT_man 2014-12-25 11:19 蝺刻摩
4 P5 h& S" l3 V9 J0 _$ y% \
: F& |/ G( H! x4 W2 q. a冽迨Host server閮剖Discuz 敺啗身摰' N+ s R2 N, G' C$ T
Host server閮剖 Web server蝡唳寧桅銝.htaccess
; U }0 k+ v* G Web server 閮:唳寥瘜冽,/etc/httpd/conf/httpd.conf銝<Directory "/www/coav4u/test"> AllowOverride 銝摰閬all,.htaccess雿 t- X7 h% y; t* `
# ^2 h# y1 C ~2 U8 y 蝡唳寧桅銝.htaccess- # -FrontPage-4 s+ u# w; ` s7 S0 L
- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* 2 V/ Z# w% t5 S4 P3 A4 R
- # disable directory browsing# r: m6 u2 {9 T l: K: N
- Options All -Indexes5 j2 I' N0 M- v3 J. ^! A6 V( `
- RewriteEngine On # 撠 RewriteEngine 璅∪
1 B( }3 R: e' Z; v2 m6 Z& ? K - RewriteBase / #閮剖箇雯蝡寧桅6 \6 |+ z4 c3 f- x0 h( V4 u
- #
. b) X/ N/ E! C) ^3 d9 F3 _6 A( } - RewriteCond %{HTTP_HOST} ^av4u.info [NC]+ ~0 j# Y: M0 y$ O
- RewriteRule ^(.*)$ HTTP://www.av4u.info/$1 [L]<font face="璆琿,璅璆琿"><font size="3">RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1' d+ s5 F9 [3 I( l
- RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1! c. m3 p1 _6 X7 M
- RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
3 o* }5 Q1 Z: G+ K3 d - RewriteRule7 T0 j) @4 w7 F
- ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$
! c$ L$ p% W# o9 N0 x `/ N! R - forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1" G( }+ h K! n8 |. A" e
- RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
! i( W! _6 T) D1 `: Z+ K$ u - RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
4 c# \# O$ ]2 Q3 ?% m: o1 P" J - RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%17 Q$ ^& r* R5 M8 r4 b
- RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1</font></font>
銴鋆賭誨蝣 摮瑼敺擐砌
2 ?' V) T$ }" z. t% a! H; K7 g
. Q( c, C+ t+ e7 j/ vDiscuz 敺啗身摰 敺->典->SEO閮剔蔭->URL) j/ z3 y& n# t# `! y) _
3 C0 i5 ?9 F K1 m+ N5 B8 ^臭誑券豢靘蝬脩閬暸8 S B2 f/ C4 M5 ^) G4 H
0 p! ]6 O: J& }' L7 Y& _
|
|