52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-8-14 11:43:25 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2016-8-14 21:30 蝺刻摩 4 v7 W8 \3 z2 }& N

, U( j! d* G; t& y% c寞鈭:
# ?+ f: L: n7 p3 S寞銝雿輻.htaccess8 {4 l4 ]+ ?" j9 _1 J- v
1.蝬脩寧桅銋.htaccess(靘憒/home/test/public_html)
) z2 O, `! I: J, [
  1. RewriteEngine On1 w( k& \: s( f1 h- ?
  2. RewriteBase /; m# O7 _! W+ q7 Z
  3. & f! h0 M, I9 |
  4. RewriteCond %{QUERY_STRING} ^(.*)$
    * P! T7 N1 C) i3 Y) t6 n. C
  5. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1
    7 H+ O+ k% W, [- W0 _
  6. RewriteCond %{QUERY_STRING} ^(.*)$
    5 K9 y0 x1 g5 W4 k" v2 J! m
  7. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1' E) v. j! y  b! O: J; A* D/ {- [
  8. RewriteCond %{QUERY_STRING} ^(.*)$
    5 ^. R5 o/ J+ G5 |9 y
  9. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
    7 w' [- @$ D' F! ~2 J
  10. RewriteCond %{QUERY_STRING} ^(.*)$
    4 r: [' B; P9 s2 M. S
  11. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1$ n) b7 {$ A. I/ ^. ]+ o7 A
  12. RewriteCond %{QUERY_STRING} ^(.*)$3 n# k3 V$ A. Y# G; m' O
  13. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
    * P2 K7 e: R, h/ V9 o
  14. RewriteCond %{QUERY_STRING} ^(.*)$
    % ?5 t2 [2 `0 A/ d9 ]  t! [
  15. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1& j* ], p' \! ^( r
  16. RewriteCond %{QUERY_STRING} ^(.*)$
    . c6 x6 n( \; a; L2 P7 ]0 u& p
  17. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1( f4 }" ~; c7 j; D/ Q6 S* \8 x
  18. RewriteCond %{QUERY_STRING} ^(.*)$
    $ ~5 g' {2 r) f1 M$ |
  19. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1  `& A) r) U4 C
銴鋆賭誨蝣
2.Discuz3.2隢憯敺->典->SEO閮剔蔭->URL->暸豢 , 蝡喟) [$ Y7 k" b) }8 w" n
寞鈭雿輻杗pacherewrite(mod_rewrite)閮剖
. L# T; L9 m8 g" j! h* T
1./etc/httpd/conf/httpd.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">,' C) J3 n6 M$ Q" m5 B5 q- F7 L' X
/etc/httpd/conf.d/砌蜓璈閮剖瑼憒virtual.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">
+ K! w+ u1 K  I; D1 ~憓隞乩批捆:
/ w- f8 L, q+ _2 R' ~$ h; V
0 U( ?+ {. U( a8 B
  1.     RewriteEngine On/ ~' r8 H" L% H- _
  2.     RewriteCond %{QUERY_STRING} ^(.*)$
    % Y/ e$ `+ B+ G6 x2 g5 e0 n  w, D
  3.     RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1" s5 W+ t5 {' e6 w. ]" A
  4.     RewriteCond %{QUERY_STRING} ^(.*)$, n7 I# g. G  o- W$ Y
  5.     RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
    & K, U* W, p- G* ~! U
  6.     RewriteCond %{QUERY_STRING} ^(.*)$
    ' B# ^# W, }/ X' I
  7.     RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1% n! A4 B( h, X8 V7 [
  8.     RewriteCond %{QUERY_STRING} ^(.*)$
    8 T. J9 J; l, m% ?: B" b9 F
  9.     RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
    : s# }# C3 g* ^/ z3 K: I( B& w8 o+ {
  10.     RewriteCond %{QUERY_STRING} ^(.*)$7 A. c8 h" B0 h0 n
  11.     RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
    ! v* {0 q3 a9 u4 m: v  s
  12.     RewriteCond %{QUERY_STRING} ^(.*)$$ E& f9 \5 @; E, ^
  13.     RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1# ^7 x; b) d. j; A% b5 \% R
  14.     RewriteCond %{QUERY_STRING} ^(.*)$5 U7 T5 ^! U+ y4 C% L
  15.     RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1, u" s7 ]% P* Q5 Z1 X
  16.     RewriteCond %{QUERY_STRING} ^(.*)$, h" p7 c: D6 j/ x# Z9 [, f
  17.     RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%10 x' ~6 D7 m* k3 T* k% G
銴鋆賭誨蝣
2./etc/httpd/conf/httpd.conf折
) M% K. h, v) }1 o% HLoadModule rewrite_module modules/mod_rewrite.so   銝銵
2 G* o6 q( n: R  D9 K嗅 httpd ==>  service httpd restart
! _0 g; g# r% V5 Z7 j( {4 |: P! U, A1 ^1 j$ Z
) w0 E1 z# a/ B& s3 V

雿輻券

祉蝛閬

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

QQ|撠暺撅||52AV璈A

GMT+8, 2026-1-24 07:20 , Processed in 0.063530 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵