52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-8-14 11:43:25 | 芰閰脖 撣 |甇摨閬 |梯璅∪
砍敺 IT_man 2016-8-14 21:30 蝺刻摩
8 E' V# I$ y: V: k. [0 A' R( ], h3 K- f+ U/ }
寞鈭:
) R  D. B! s/ X* b. X) a% p2 f  r寞銝雿輻.htaccess
9 O- G8 S+ x2 `/ d1.蝬脩寧桅銋.htaccess(靘憒/home/test/public_html)* O2 |6 V" n; h* X1 h
  1. RewriteEngine On
    3 f) I, i5 a$ j- F
  2. RewriteBase /" f& g( T: ~' i& b: g1 V# G! i
  3. * a; O. k2 d/ g! d, A
  4. RewriteCond %{QUERY_STRING} ^(.*)$
    * F( z4 Q$ O' U4 Q
  5. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1* T, w7 |& j- C# W
  6. RewriteCond %{QUERY_STRING} ^(.*)$3 G" l" C! W; _& g7 I' Y3 O! E
  7. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
    1 x3 x$ S7 R" Q4 K8 D0 K# v7 ~7 Z
  8. RewriteCond %{QUERY_STRING} ^(.*)$3 o8 L% Y2 J: ~; p
  9. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%16 w/ |5 _% Q; }4 \/ J  R6 E7 _
  10. RewriteCond %{QUERY_STRING} ^(.*)$
    ; @7 i& I7 \$ H) ]2 T
  11. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
    . W) x2 @) J- q7 l, [3 _3 }- t
  12. RewriteCond %{QUERY_STRING} ^(.*)$4 H' X; g) e8 B3 R/ ]
  13. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
    , [: f5 [# B6 w+ E0 {3 w
  14. RewriteCond %{QUERY_STRING} ^(.*)$
    * p# m# Y( w5 w, ~% c3 _3 d
  15. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%15 G/ n1 K: B% Y( N5 |9 s# O0 `
  16. RewriteCond %{QUERY_STRING} ^(.*)$7 v% y7 V1 P: k, i4 h, J" C8 o
  17. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%14 m5 _" k$ y3 o1 \
  18. RewriteCond %{QUERY_STRING} ^(.*)$
    - N! t2 v: C/ L- F; i
  19. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1% w3 g8 V# |7 B- b# {1 N  [# a
銴鋆賭誨蝣
2.Discuz3.2隢憯敺->典->SEO閮剔蔭->URL->暸豢 , 蝡喟
1 w: a' C4 |" a9 W6 B寞鈭雿輻杗pacherewrite(mod_rewrite)閮剖! Y" }1 G/ ?6 J0 p! s+ J" ]$ H
1./etc/httpd/conf/httpd.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">,! t) @" g% N' m" A- `7 ?" m
/etc/httpd/conf.d/砌蜓璈閮剖瑼憒virtual.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">
% i2 k( U3 }; I+ d憓隞乩批捆:
6 L8 d; Y) b3 D7 g% t( {
  S( K* m7 y& o
  1.     RewriteEngine On; t" Y; W6 \* G0 l
  2.     RewriteCond %{QUERY_STRING} ^(.*)$
    6 l- Z0 a  b+ I3 V$ q, x
  3.     RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%14 Y! k6 Z/ J( d% e5 A; \
  4.     RewriteCond %{QUERY_STRING} ^(.*)$
    - ?+ q" E+ X- X  g: |! J. C' T# I
  5.     RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
    ( }& g0 w; ?3 s8 T' ]1 h+ ~
  6.     RewriteCond %{QUERY_STRING} ^(.*)$
    " q" V2 }4 {' m1 N
  7.     RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
    % Y. @" W$ v+ L5 @, D5 h- S3 b
  8.     RewriteCond %{QUERY_STRING} ^(.*)$9 E- U# J  ]9 _& z# Z" ?# ?
  9.     RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
    5 p0 ^4 W$ q4 c7 ^% d# X9 a7 A4 {
  10.     RewriteCond %{QUERY_STRING} ^(.*)$1 y. D% |  |/ G! r: r1 ^' T
  11.     RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1/ Q* Q  }+ A# `! u2 s
  12.     RewriteCond %{QUERY_STRING} ^(.*)$
    # }% X* ?& f' J5 b$ Q  K0 i) {
  13.     RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%19 Q1 {- S) m+ e4 X& @
  14.     RewriteCond %{QUERY_STRING} ^(.*)$
    % x+ P! e% Q2 l' U' m$ X
  15.     RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
    - L) Z  U' M& k# r1 ~3 l/ h
  16.     RewriteCond %{QUERY_STRING} ^(.*)$
    - B2 ^  _% T! [# _) G2 s9 W0 y
  17.     RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1, ~$ `+ g& R- c  M: {' }/ G# v5 h
銴鋆賭誨蝣
2./etc/httpd/conf/httpd.conf折* J6 b0 i5 G5 V3 ], p
LoadModule rewrite_module modules/mod_rewrite.so   銝銵
! I  J* J$ j6 U' S* |' A嗅 httpd ==>  service httpd restart
9 U. q8 P2 R4 w5 P( q& Q
/ S" ]1 x+ M3 G; X9 ?( V. h4 S0 s! M& r. n" s

雿輻券

祉蝛閬

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

QQ|撠暺撅||52AV璈A

GMT+8, 2026-3-1 18:33 , Processed in 0.080730 second(s), 17 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵