52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-8-14 11:43:25 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2016-8-14 21:30 蝺刻摩
7 R- ]7 L; t4 U3 l, m: S' u3 M% S* ]  }1 @" Z. N
寞鈭:
6 y5 z: O& ~6 I" q' N3 r寞銝雿輻.htaccess7 y" T% O5 Z( L, p
1.蝬脩寧桅銋.htaccess(靘憒/home/test/public_html)
4 k& e/ V& N" w8 S  M
  1. RewriteEngine On
    + V, J7 T5 v; h9 z1 {! S) a
  2. RewriteBase /
    7 Q$ O" |2 o( }

  3. & ~, S; M$ n6 g. f/ E: U
  4. RewriteCond %{QUERY_STRING} ^(.*)$
    + E- C; l7 W3 o# G
  5. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1
    - B" m2 Z3 O! v/ w
  6. RewriteCond %{QUERY_STRING} ^(.*)$
    & R1 Y6 }1 v# O$ Z8 o3 j# @
  7. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%15 |- o4 D9 _6 U" F
  8. RewriteCond %{QUERY_STRING} ^(.*)$
    * [& L# j# {2 m' D  w$ F# _
  9. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1% D1 O5 U" r: B0 a0 G0 Q( Z& C# j
  10. RewriteCond %{QUERY_STRING} ^(.*)$
    * f2 {8 P; I& s. N+ O" E* F/ Q
  11. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
    2 n# c* b- K: \2 D8 G/ `
  12. RewriteCond %{QUERY_STRING} ^(.*)$
    # h, \8 R  J5 K( w# v
  13. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%16 i3 Q% D1 J  R8 i
  14. RewriteCond %{QUERY_STRING} ^(.*)$
    4 ~2 Y6 a2 F& _! K
  15. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1% J3 _4 k7 W2 v8 ]3 U5 g6 O
  16. RewriteCond %{QUERY_STRING} ^(.*)$/ _& P4 y' e) q* P  J9 ^; c
  17. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
    2 Y4 o1 V. n& n" C
  18. RewriteCond %{QUERY_STRING} ^(.*)$, d9 M( l4 E+ e: }/ y
  19. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
    4 e% ~# O) i7 @! k
銴鋆賭誨蝣
2.Discuz3.2隢憯敺->典->SEO閮剔蔭->URL->暸豢 , 蝡喟9 Y7 G, `6 f# B9 F# T
寞鈭雿輻杗pacherewrite(mod_rewrite)閮剖6 Y6 C2 [; V& i% k! M
1./etc/httpd/conf/httpd.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">,
1 m! c, S- K( f% g  F/etc/httpd/conf.d/砌蜓璈閮剖瑼憒virtual.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">! h4 h' m% n2 k: S
憓隞乩批捆:
; V6 q, G5 k6 \8 X' n  E( Y- G; C2 U/ q# `4 S% f
  1.     RewriteEngine On
    7 |; j& l' r/ C/ Z
  2.     RewriteCond %{QUERY_STRING} ^(.*)$
    0 g& |* `, O" `; ~6 Q
  3.     RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1
    1 O4 M3 ?; j( ?, {# Y& E
  4.     RewriteCond %{QUERY_STRING} ^(.*)$# i8 C" h  q/ v
  5.     RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
    ( Z& b& q6 g) E1 f' Z, V1 \
  6.     RewriteCond %{QUERY_STRING} ^(.*)$
    ) A+ Q5 l: r+ t, ~
  7.     RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
    3 D  }: _3 }# _9 o
  8.     RewriteCond %{QUERY_STRING} ^(.*)$
    # C  F$ k$ T0 O$ C6 ?
  9.     RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1% T7 b& F/ d  I
  10.     RewriteCond %{QUERY_STRING} ^(.*)$1 Z: k; X: y7 c3 _! V
  11.     RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
    ; Q. }0 r" D0 @" H2 t5 f' P
  12.     RewriteCond %{QUERY_STRING} ^(.*)$! J& _. h- G- @# h2 w* V3 a6 y; B
  13.     RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
    ) d" p/ @3 d" n/ R  G& J
  14.     RewriteCond %{QUERY_STRING} ^(.*)$
    4 O% {6 {$ o9 T: i9 e
  15.     RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1% K, |# T" r3 @- W: g% s
  16.     RewriteCond %{QUERY_STRING} ^(.*)$6 R" V' }; [- Q4 |& l
  17.     RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%17 a: q! u6 \* z* e# t
銴鋆賭誨蝣
2./etc/httpd/conf/httpd.conf折
  x/ T! d+ K+ o3 w4 u% L! |, PLoadModule rewrite_module modules/mod_rewrite.so   銝銵& r" z, u3 b5 E$ W! u$ j( g/ V
嗅 httpd ==>  service httpd restart) y/ ~9 P9 o6 S8 a3 f0 W4 V' C
7 S" H, Q& g; U5 E% F

  q* A+ ?/ u8 z- d  U

雿輻券

祉蝛閬

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

QQ|撠暺撅||52AV璈A

GMT+8, 2026-1-24 19:41 , Processed in 0.060918 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵