52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
     
亦: 4276|敺: 0
銝銝銝駁 銝銝銝駁

[Discuz X3.2] Apache啣閮剖賡(rewrite)銋SEO

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-8-14 11:43:25 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2016-8-14 21:30 蝺刻摩 7 a8 k; w7 O6 K, P1 n; J
8 H. {& D1 z! r' _- p- y
寞鈭:
3 I$ q! N# r* v; @+ ]寞銝雿輻.htaccess: x" a: j4 R5 g8 k- c& ]
1.蝬脩寧桅銋.htaccess(靘憒/home/test/public_html)6 }" U1 r# q; t
  1. RewriteEngine On
    9 t9 l" B7 X4 a1 k- [
  2. RewriteBase /1 T' r+ U( G) `8 \
  3. 5 B, U7 k* N, w6 h  H
  4. RewriteCond %{QUERY_STRING} ^(.*)$
    . H3 k$ [. T! w5 {" s+ y$ Z
  5. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1. j) s* q: `8 G% e3 _  U, W' B
  6. RewriteCond %{QUERY_STRING} ^(.*)$; V! P: f# _6 \- T1 e
  7. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
      i& i) s/ u, M' h
  8. RewriteCond %{QUERY_STRING} ^(.*)$3 n% l5 i3 i$ c, s- l: s
  9. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
    ' ]! C% h! z# ?7 m; R
  10. RewriteCond %{QUERY_STRING} ^(.*)$3 x4 [. C! J! A
  11. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
    # R3 c/ `/ G- t: J' u0 \  n  C
  12. RewriteCond %{QUERY_STRING} ^(.*)$
    9 J$ ~/ U! N. W8 L6 N6 b: j! [/ F
  13. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%15 g5 M% E7 r0 d: j" T) k! w0 L3 N
  14. RewriteCond %{QUERY_STRING} ^(.*)$
    % C1 ~2 p! Y8 S0 B) S% B* g
  15. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%12 X7 _7 ?1 v& }+ }# b4 \+ q2 {
  16. RewriteCond %{QUERY_STRING} ^(.*)$* K0 f4 T- u  R2 O
  17. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
    1 K" B, D9 R9 y8 U
  18. RewriteCond %{QUERY_STRING} ^(.*)$; I0 j1 N) q3 U: Q/ g: }
  19. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
    1 ^' J3 @) M: M6 _1 G4 \
銴鋆賭誨蝣
2.Discuz3.2隢憯敺->典->SEO閮剔蔭->URL->暸豢 , 蝡喟, @3 s2 @" H8 ?1 y7 T. w
寞鈭雿輻杗pacherewrite(mod_rewrite)閮剖
4 n, G8 N6 a9 {% V& E1 a
1./etc/httpd/conf/httpd.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">,
1 L4 Y" S; p/ i3 d4 f- m* l/etc/httpd/conf.d/砌蜓璈閮剖瑼憒virtual.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">
  S) \" b, Z0 o8 b6 H" x- x憓隞乩批捆:" [8 E3 W1 g. Q* Y' K
6 H1 s9 v% w# l4 G1 H4 k& W
  1.     RewriteEngine On- o( k; ]2 `+ q6 @; P4 g$ V
  2.     RewriteCond %{QUERY_STRING} ^(.*)$
    & C+ l8 v( v5 B# ?2 G$ `0 F$ H
  3.     RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1" D6 Z! I& L: Z" J: J+ G0 y
  4.     RewriteCond %{QUERY_STRING} ^(.*)$; q4 ~. i: O" |/ P3 ~) H) f$ X
  5.     RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
    - E9 k1 \; C" T% N) D7 b
  6.     RewriteCond %{QUERY_STRING} ^(.*)$+ T. k* y. h" G8 n6 W0 n1 j
  7.     RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%19 c1 F- x; K/ S# |; R' H
  8.     RewriteCond %{QUERY_STRING} ^(.*)$
    # Z. b4 ]6 Z7 }  |8 d
  9.     RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
    6 V1 X4 _. e) G0 o
  10.     RewriteCond %{QUERY_STRING} ^(.*)$
    ' N+ D! C$ C' h! w0 B* {
  11.     RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%13 a! z8 H, a7 A6 _$ R& g9 o
  12.     RewriteCond %{QUERY_STRING} ^(.*)$" H3 L- h  B. m* u1 I2 f$ Z
  13.     RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%14 q7 L) Q/ d3 P
  14.     RewriteCond %{QUERY_STRING} ^(.*)$
    7 Y  Y6 W/ Y/ a' t2 ?
  15.     RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
    % b. q8 g; K+ n( r
  16.     RewriteCond %{QUERY_STRING} ^(.*)$8 a/ z+ ^8 i% D* A% v
  17.     RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1( s5 k4 T# G1 V) m- k7 P  h2 P
銴鋆賭誨蝣
2./etc/httpd/conf/httpd.conf折
0 q  D* `9 ^2 F4 zLoadModule rewrite_module modules/mod_rewrite.so   銝銵1 S$ Y5 ?' ^- e$ [7 `; w( `; |% e0 Q
嗅 httpd ==>  service httpd restart
: }& u5 m2 L3 c( ?  T1 y; Q0 `) M2 M

* \$ Z! o, x5 R

雿輻券

祉蝛閬

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2026-3-11 06:53 , Processed in 0.052106 second(s), 16 queries .

蝯∠.撱

[email protected] | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵