52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-8-14 11:43:25 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2016-8-14 21:30 蝺刻摩
1 q- i( v6 Q8 i0 B) i
# b1 L. ^" J/ o6 X寞鈭:# `$ B% N  i* A0 x* A% t# ?/ [% d
寞銝雿輻.htaccess5 |2 P7 A+ P: Q: n# R6 z
1.蝬脩寧桅銋.htaccess(靘憒/home/test/public_html)
# q" r) u( j2 s1 n# l. K1 ^) G
  1. RewriteEngine On
    1 p9 F& L& A6 n/ x, F
  2. RewriteBase /: C, C+ c" x9 v7 w
  3. % M* O1 {' ~4 P" f5 c. `# h/ M
  4. RewriteCond %{QUERY_STRING} ^(.*)$
    8 }0 @& a4 L$ g0 w. b2 w3 Z) b
  5. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1
    * j& T6 {  t0 i8 A
  6. RewriteCond %{QUERY_STRING} ^(.*)$
    3 C: u3 Y7 E9 {' c! Q5 H: h* @
  7. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1: ?2 ]* Z" B: G+ l
  8. RewriteCond %{QUERY_STRING} ^(.*)$
    / k4 I% f" R9 c. L7 E! d
  9. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1% v. k) B8 Z1 {, x
  10. RewriteCond %{QUERY_STRING} ^(.*)$
    ' ~+ P0 a# \+ T
  11. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1! i' R$ S' I4 Z# H  ]* v; B
  12. RewriteCond %{QUERY_STRING} ^(.*)$& \( T! A1 d1 G/ |0 R
  13. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
    9 k/ o8 D; r' G8 c
  14. RewriteCond %{QUERY_STRING} ^(.*)$
    ) s7 M+ h0 E9 ]
  15. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
    9 I* `" ^$ a, W0 Z3 A/ k- b$ i
  16. RewriteCond %{QUERY_STRING} ^(.*)$
    & |8 k2 h/ M1 I+ V5 p
  17. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
    6 \5 B' b) G; }# t
  18. RewriteCond %{QUERY_STRING} ^(.*)$; k- [% i8 |: w# E: S- t
  19. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%11 N, P- k4 ^, x/ W; }0 h0 n
銴鋆賭誨蝣
2.Discuz3.2隢憯敺->典->SEO閮剔蔭->URL->暸豢 , 蝡喟4 i8 t) v& i. I; |$ z1 A
寞鈭雿輻杗pacherewrite(mod_rewrite)閮剖
' c* u8 k" U' z" q3 T/ w2 k
1./etc/httpd/conf/httpd.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">,5 i: P* g1 `7 F9 s$ d
/etc/httpd/conf.d/砌蜓璈閮剖瑼憒virtual.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">
4 L' p3 `& ^- G$ ^: `+ |憓隞乩批捆:
1 O: g8 R  D/ ?4 }$ i/ f8 A# |' K
! s# h: S5 ]: Q2 j- Z
  1.     RewriteEngine On
    ' U; D+ H' _# G; s
  2.     RewriteCond %{QUERY_STRING} ^(.*)$& n" _+ E7 Z3 F
  3.     RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1
    # \, h6 x, @+ Z4 H
  4.     RewriteCond %{QUERY_STRING} ^(.*)$7 n! l; k% }. v" b
  5.     RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
    5 I6 w8 t& j4 p- D  `
  6.     RewriteCond %{QUERY_STRING} ^(.*)$9 Z: w# }$ C7 p* @9 f) S4 w
  7.     RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
    ) l7 j/ r  {0 J7 ^" y& @. o
  8.     RewriteCond %{QUERY_STRING} ^(.*)$2 Z4 j  u. W  U' I& b& ?$ v
  9.     RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1! d5 o. }/ r9 h" x% N; p2 Q
  10.     RewriteCond %{QUERY_STRING} ^(.*)$1 e2 \% X, C: K- M- g  D+ N
  11.     RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
    9 o- T4 g2 \0 I
  12.     RewriteCond %{QUERY_STRING} ^(.*)$# p9 P; e* |* T7 N
  13.     RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1" {; f/ r( N: M+ i4 \
  14.     RewriteCond %{QUERY_STRING} ^(.*)$
    , H; q; M% ~' k7 s) y+ d$ p
  15.     RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1, W% \' B+ F5 C3 B$ F  h
  16.     RewriteCond %{QUERY_STRING} ^(.*)$& s8 b2 v3 B4 Z
  17.     RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
    . `0 G9 [- y$ x5 e7 }0 g
銴鋆賭誨蝣
2./etc/httpd/conf/httpd.conf折  J4 H7 e+ i( c1 h" O' N/ w
LoadModule rewrite_module modules/mod_rewrite.so   銝銵
2 p1 P) q+ Y0 v& E# v2 j7 p嗅 httpd ==>  service httpd restart
9 ^1 I" _6 r$ F/ F9 N# b3 z$ C! g- B# g. s
* b% k6 n* g9 A# `' }

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-21 23:30 , Processed in 0.063255 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵