52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-8-14 11:43:25 | 芰閰脖 撣 |甇摨閬 |梯璅∪
砍敺 IT_man 2016-8-14 21:30 蝺刻摩 % S# v9 r9 \1 b$ W, w

* F" m& K3 g! q4 \4 Q! e* C8 g$ {! c+ D; P寞鈭:" S6 C; }" j, V% h1 b
寞銝雿輻.htaccess( ~% R$ ^; `, W
1.蝬脩寧桅銋.htaccess(靘憒/home/test/public_html)
7 q6 ^+ O* b! o. M9 O& P
  1. RewriteEngine On
    1 t5 p" P9 u8 X
  2. RewriteBase /
    " `0 q6 D! @+ P& w' ~# n5 m3 s$ t

  3. ! v) i; H  C* M/ d
  4. RewriteCond %{QUERY_STRING} ^(.*)$
    8 c- H* X  T( |  W, ]
  5. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%11 r0 l) j& b+ P" K
  6. RewriteCond %{QUERY_STRING} ^(.*)$. T6 M/ L5 C- b( Q1 X* t
  7. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1# B, N8 d4 M1 p. `& \
  8. RewriteCond %{QUERY_STRING} ^(.*)$
    5 s0 M' z$ L: @% A1 U3 x- A/ R, Q
  9. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
    ' {: V0 _- [1 w3 r" H7 I
  10. RewriteCond %{QUERY_STRING} ^(.*)$8 y/ t8 ~9 G! J3 H
  11. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
    / Q. w' y8 [0 L3 x
  12. RewriteCond %{QUERY_STRING} ^(.*)$
    ( B" O$ e. R# M/ ~* ^
  13. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
    , J0 @4 Z- C! ^. I
  14. RewriteCond %{QUERY_STRING} ^(.*)$
      H# ~. k' h, G# k# Z, F0 x, |% ?
  15. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1( u0 P- ~8 t& O9 u
  16. RewriteCond %{QUERY_STRING} ^(.*)$; k7 g, h$ n, t" L/ r7 q
  17. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1' W, u* `2 j4 `( O/ K' d# J
  18. RewriteCond %{QUERY_STRING} ^(.*)$5 N- P/ [8 j9 l" o1 W3 d
  19. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
    ; ]/ t3 E' ?) d9 d  l& W
銴鋆賭誨蝣
2.Discuz3.2隢憯敺->典->SEO閮剔蔭->URL->暸豢 , 蝡喟) v& `# s9 y/ ^2 Q: K) B4 o4 i/ o
寞鈭雿輻杗pacherewrite(mod_rewrite)閮剖
- H& n5 ?) e  O' d1 ?
1./etc/httpd/conf/httpd.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">,
, |9 M( ~+ f2 _; {2 G( s/etc/httpd/conf.d/砌蜓璈閮剖瑼憒virtual.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">
& C$ m& g5 W; f憓隞乩批捆:
  V" D( {8 }$ R! ~; W/ y3 J% E; J
  1.     RewriteEngine On: T" J: `' r3 }1 |6 s# B
  2.     RewriteCond %{QUERY_STRING} ^(.*)$+ _( y1 z! \4 P. _. }0 l. _
  3.     RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1
    7 Z6 i: l( J: n2 j" s) C0 _. P
  4.     RewriteCond %{QUERY_STRING} ^(.*)$
    7 B7 v6 {9 `- s2 B
  5.     RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1: b, C; q- |2 L$ y/ X# Y9 ~) z
  6.     RewriteCond %{QUERY_STRING} ^(.*)$' l2 M9 s# X; V: f0 f, F
  7.     RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
    % p- `) ~( k! c
  8.     RewriteCond %{QUERY_STRING} ^(.*)$
    6 m' l* ^" j  H8 U4 a- N  R* K. n
  9.     RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
    3 g" C. C& ?! n% t( Y4 V
  10.     RewriteCond %{QUERY_STRING} ^(.*)$: X3 a% I$ b# _  U. \
  11.     RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
    9 E* x9 C7 T6 e/ N# r
  12.     RewriteCond %{QUERY_STRING} ^(.*)$  \  x6 O  K5 b
  13.     RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
    9 O! i1 f- p0 N& h
  14.     RewriteCond %{QUERY_STRING} ^(.*)$
    2 W+ h' @! i! a: f+ n, ~+ d# X
  15.     RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
    * ?& s  l! D$ j+ ]) ~
  16.     RewriteCond %{QUERY_STRING} ^(.*)$5 r/ Z6 p4 O: y; O+ X# W
  17.     RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
    . R0 e2 l5 V) l+ o6 R: A
銴鋆賭誨蝣
2./etc/httpd/conf/httpd.conf折
5 j2 ?3 w3 I! BLoadModule rewrite_module modules/mod_rewrite.so   銝銵9 Q1 w, z( i6 Y. S8 P
嗅 httpd ==>  service httpd restart& F+ @# |/ ?# q- C5 t2 a- ]

2 Y: O2 m* ]- n- s* b- m% V; G) j+ O% K

雿輻券

祉蝛閬

撠蝝詨

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

QQ|撠暺撅||52AV璈A

GMT+8, 2025-12-6 04:06 , Processed in 0.066740 second(s), 17 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵