52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-8-14 11:43:25 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2016-8-14 21:30 蝺刻摩 - Y: g6 K2 {9 R4 m
, }- ?! v! T/ w
寞鈭:! Y& [7 N" x3 @: B' T2 h
寞銝雿輻.htaccess/ q  X# M& z% U, j2 n
1.蝬脩寧桅銋.htaccess(靘憒/home/test/public_html)1 C1 ~8 M( Q+ v/ ~. b5 u: ]% r
  1. RewriteEngine On
    % U, E# B9 W5 ?; @2 h
  2. RewriteBase /
    # c8 O% o, g( k+ P

  3. 4 q& ^* `/ Z7 J) }& {8 i1 j
  4. RewriteCond %{QUERY_STRING} ^(.*)$
    / v: L1 \: r& t7 i9 F! M: G0 k
  5. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1
    8 v1 x8 w, |  `
  6. RewriteCond %{QUERY_STRING} ^(.*)$) h1 c8 x4 p5 F" @* d/ S0 y. ]& S
  7. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
    " f- P1 x. ?1 k
  8. RewriteCond %{QUERY_STRING} ^(.*)$
    + E! W* [7 b6 y
  9. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
    & ^' D& U: T  |6 W
  10. RewriteCond %{QUERY_STRING} ^(.*)$9 H" i# c- D% [8 r
  11. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%15 t! g+ B3 T6 e' O: O# ~$ {" ?
  12. RewriteCond %{QUERY_STRING} ^(.*)$
    $ ~% c: H6 T) E' s% W
  13. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1- y3 C8 ^! X" K5 G+ V* c
  14. RewriteCond %{QUERY_STRING} ^(.*)$$ e/ ]% S; Y2 L: |! j
  15. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
    + C) C5 J* Z% I( W7 k4 E3 ]
  16. RewriteCond %{QUERY_STRING} ^(.*)$6 P& W* ?! C3 c5 U, p0 P( L
  17. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
    * q& j. q; L1 r0 w, }9 J7 u
  18. RewriteCond %{QUERY_STRING} ^(.*)$
    ( w. n8 Y% {/ a# U% @
  19. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1- n( S: s) y1 j( C- K# \/ L3 H/ d
銴鋆賭誨蝣
2.Discuz3.2隢憯敺->典->SEO閮剔蔭->URL->暸豢 , 蝡喟
4 Z# n/ J, S) {6 n寞鈭雿輻杗pacherewrite(mod_rewrite)閮剖
2 ^8 k7 x  B- ]8 f5 [
1./etc/httpd/conf/httpd.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">,1 W* e' V' J' m# L- o) ~$ K4 A
/etc/httpd/conf.d/砌蜓璈閮剖瑼憒virtual.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">
5 H' K  g0 n! M( X憓隞乩批捆:1 o, l' G: M  D
" ~. s- f* \, l2 \0 L9 y5 H
  1.     RewriteEngine On
    8 p8 Y4 I6 X  L& }8 Q4 U# g
  2.     RewriteCond %{QUERY_STRING} ^(.*)$7 s: c' m9 D! ~4 f7 [/ T: u. j2 Q
  3.     RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1
    % P1 W! s4 c: E. z% A" j
  4.     RewriteCond %{QUERY_STRING} ^(.*)$
    2 i7 n( E2 d3 C# M
  5.     RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
    ' ~1 d% Z+ M1 t8 H8 n
  6.     RewriteCond %{QUERY_STRING} ^(.*)$
    # s4 B, u* l9 W- j
  7.     RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
    - \/ h8 o! m$ t/ j5 H' \% `
  8.     RewriteCond %{QUERY_STRING} ^(.*)$
    7 M2 W7 \" k% z# l+ ~- V" d
  9.     RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%10 Z$ \% r% P9 S/ @0 H' L
  10.     RewriteCond %{QUERY_STRING} ^(.*)$- T* u/ }; }* c1 K2 V
  11.     RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1' h" p& J) Q! x
  12.     RewriteCond %{QUERY_STRING} ^(.*)$6 }5 p) d0 h+ k1 C6 E6 N- _: v
  13.     RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
    9 m4 {! W" z& h' |+ J  R! n0 k* Z8 z
  14.     RewriteCond %{QUERY_STRING} ^(.*)$
    9 k! x# n! o! I1 q- e
  15.     RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
    5 c% N$ O7 Q8 |
  16.     RewriteCond %{QUERY_STRING} ^(.*)$
    . Q- Y8 G4 R4 n2 p- F
  17.     RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%12 W! X: \; i/ |
銴鋆賭誨蝣
2./etc/httpd/conf/httpd.conf折
3 X- }! i$ K6 r4 S0 x# x" d* PLoadModule rewrite_module modules/mod_rewrite.so   銝銵1 C# f; b, J* O+ h% D
嗅 httpd ==>  service httpd restart
$ |. S* H5 m( M9 G- b% a6 E9 j: P5 n% b6 p, E* s- `4 w
6 d9 W2 `; n0 Y! B8 q: E7 L

雿輻券

祉蝛閬

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

QQ|撠暺撅||52AV璈A

GMT+8, 2026-1-25 18:03 , Processed in 0.072532 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵