52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-8-14 11:43:25 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2016-8-14 21:30 蝺刻摩
. m0 N0 u, F2 s+ H& |' Y" I& C% a7 s$ x
寞鈭:
2 L) T" a! i: C" r寞銝雿輻.htaccess* t3 Z6 I1 n& n; N- T
1.蝬脩寧桅銋.htaccess(靘憒/home/test/public_html)
9 L* K2 K7 m' @1 a, W
  1. RewriteEngine On
    1 u% R3 |* n& P4 y0 R
  2. RewriteBase /
    $ n/ g5 I" b$ g9 p7 l$ R

  3. 5 }& f/ y: P& A/ h7 G4 i
  4. RewriteCond %{QUERY_STRING} ^(.*)$6 ]9 o2 q) j6 b& i, Y/ V8 W  d
  5. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1
    , ?$ @6 }5 i6 f6 c
  6. RewriteCond %{QUERY_STRING} ^(.*)$  w) \. F8 I, o, E2 Q& Q+ L
  7. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
    - |  I* [7 \9 m1 s# o1 H" w6 l) o
  8. RewriteCond %{QUERY_STRING} ^(.*)$1 A1 C( q! n/ V3 w
  9. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1: V" ?  W( ~" h) x/ r. I) I/ H6 j
  10. RewriteCond %{QUERY_STRING} ^(.*)$0 M* ~$ m7 c5 h3 m+ s5 M
  11. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
    ( p2 F% [% T( Y& u
  12. RewriteCond %{QUERY_STRING} ^(.*)$
    : t; q5 b3 Q. Q% g* w, Z
  13. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1; a8 T$ {7 C$ `7 f
  14. RewriteCond %{QUERY_STRING} ^(.*)$
    " Z( S  ^" u% |4 r, L. f0 e4 z+ W
  15. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
    4 x7 K$ o8 j, t1 t; z6 Z7 @& U
  16. RewriteCond %{QUERY_STRING} ^(.*)$8 f& Z, r% z4 _" E
  17. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
    - D9 K5 M# H# s6 G6 V9 Q
  18. RewriteCond %{QUERY_STRING} ^(.*)$2 P4 m( y$ ?8 W$ H  l( g4 u
  19. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1" g% I. w: o6 }9 Y2 E* e! R
銴鋆賭誨蝣
2.Discuz3.2隢憯敺->典->SEO閮剔蔭->URL->暸豢 , 蝡喟
: A% v! p1 G! g$ ]% A寞鈭雿輻杗pacherewrite(mod_rewrite)閮剖2 W' I7 w) D2 W- ^
1./etc/httpd/conf/httpd.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">,
" }: B- {! {) n" O7 y7 |/etc/httpd/conf.d/砌蜓璈閮剖瑼憒virtual.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">* `* K7 n$ e4 ^- y, \' h) p
憓隞乩批捆:; i- B# O1 H( w5 K* c

! E  y1 S2 @4 ~, |$ q# z6 B' x5 R
  1.     RewriteEngine On
    ' ?1 N, w$ m+ i9 h3 O3 z
  2.     RewriteCond %{QUERY_STRING} ^(.*)$
    $ x4 p2 d) y' ~" s( ], M+ v
  3.     RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1
    2 o! i5 Q# T6 w: r% Q& I4 w* f% }# a
  4.     RewriteCond %{QUERY_STRING} ^(.*)$
    ) q1 M- y' Z$ n
  5.     RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
    . }; J3 B9 ]3 B# n9 e0 V
  6.     RewriteCond %{QUERY_STRING} ^(.*)$4 t5 I# n' @: R- O1 c6 t
  7.     RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1" Z+ t( f  N0 l7 ~: ~$ G
  8.     RewriteCond %{QUERY_STRING} ^(.*)$8 \4 p+ n* v: I% ]
  9.     RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
    2 @6 m& K( X. L
  10.     RewriteCond %{QUERY_STRING} ^(.*)$6 k, c6 u  X& ~8 U1 m6 P5 j
  11.     RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
    * Y8 u7 v; d7 d) ^' y/ e1 ^
  12.     RewriteCond %{QUERY_STRING} ^(.*)$
    ) c6 @4 V# r( B$ U
  13.     RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
    / s7 ]9 _) b" E2 C
  14.     RewriteCond %{QUERY_STRING} ^(.*)$
    & S7 b8 @* H7 ~9 b& f
  15.     RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
    * U" W7 V/ A* I: F/ t* F) ^
  16.     RewriteCond %{QUERY_STRING} ^(.*)$+ a: L! L' o3 }  J& `
  17.     RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
    0 F% M6 @' u% K* G1 R; s
銴鋆賭誨蝣
2./etc/httpd/conf/httpd.conf折
: s7 N' n, T  v& _LoadModule rewrite_module modules/mod_rewrite.so   銝銵# b% P3 x8 n9 l# ]4 y
嗅 httpd ==>  service httpd restart2 h& ^& Z: O! e/ w2 b
3 B+ M: ?1 }1 i. r- p3 W0 Z; H! ?

6 ^# F. ]$ N* {! A. |) P

雿輻券

祉蝛閬

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

QQ|撠暺撅||52AV璈A

GMT+8, 2026-1-25 06:58 , Processed in 0.069169 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵