52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-8-14 11:43:25 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2016-8-14 21:30 蝺刻摩
) _# u* k& ~! F1 f+ y& V7 B
  x% D" b: i  I  H寞鈭:3 y, B6 O  y% L, Y) u/ K& f
寞銝雿輻.htaccess2 v* {: Q2 V2 A* V2 ^2 |5 F# F; ]
1.蝬脩寧桅銋.htaccess(靘憒/home/test/public_html)
+ ]# U0 ^) W- r7 f: _4 b! a0 t
  1. RewriteEngine On
    * `" `2 I6 Q4 S2 R
  2. RewriteBase /
      M' X5 P$ W$ h. a1 b% x1 a+ F

  3. 6 b" P% h3 t; c
  4. RewriteCond %{QUERY_STRING} ^(.*)$" y3 H. o3 K1 Q- d0 l
  5. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1
    ; m  k: e0 s3 `+ q  Q
  6. RewriteCond %{QUERY_STRING} ^(.*)$: @8 ]; I4 V8 j+ g1 {* K
  7. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
    : _+ ]* S+ R' \& M+ H
  8. RewriteCond %{QUERY_STRING} ^(.*)$# [* O2 R( g) t- q4 x7 x
  9. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1: R* H+ G: L6 @- N
  10. RewriteCond %{QUERY_STRING} ^(.*)$
    0 @; \6 t$ }8 S
  11. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
    ! r+ Y  D% R* `4 T, b) m
  12. RewriteCond %{QUERY_STRING} ^(.*)$
    9 {: g) l# a, _; M9 G6 P
  13. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1& t' c% ?2 q" V- `; z/ f- ]1 i% O
  14. RewriteCond %{QUERY_STRING} ^(.*)$/ g5 _" ]! k& g: O* l; J
  15. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%17 Y# ^3 y9 Q% ^) W
  16. RewriteCond %{QUERY_STRING} ^(.*)$& I7 e0 E, n& A0 K* f' n2 h
  17. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1: p& y5 C" f  {+ L2 R
  18. RewriteCond %{QUERY_STRING} ^(.*)$9 y7 _! _' e1 V4 I$ {8 I
  19. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
    0 g6 v- O# s7 C% C9 ?. |" c
銴鋆賭誨蝣
2.Discuz3.2隢憯敺->典->SEO閮剔蔭->URL->暸豢 , 蝡喟0 Q6 u2 C1 [# W" b3 Q
寞鈭雿輻杗pacherewrite(mod_rewrite)閮剖/ S/ V' q8 w) [
1./etc/httpd/conf/httpd.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">,6 n- i% v* E1 F/ F$ v% t
/etc/httpd/conf.d/砌蜓璈閮剖瑼憒virtual.conf找<VirtualHost *:80>抒<Directory "/home/domain/public_html">+ A5 ~+ W4 m% u$ @8 y/ ]9 p  s
憓隞乩批捆:5 _6 {- w; P6 U4 D6 p( y  O' J
  C( Q3 ?+ m8 D6 f" ~; w# ?
  1.     RewriteEngine On! ?+ F4 x2 w( T3 A
  2.     RewriteCond %{QUERY_STRING} ^(.*)$
    6 R4 t/ O* Y3 P# W9 ?; o
  3.     RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1# R8 g) z( ^$ y% F' L% G
  4.     RewriteCond %{QUERY_STRING} ^(.*)$
    2 w- @- u' j) }" n) r% Q# k( n
  5.     RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1* [7 ?2 @3 L6 x* {
  6.     RewriteCond %{QUERY_STRING} ^(.*)$( I  O% |, V- A/ R
  7.     RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1% ~' n9 [3 X3 D2 L+ p5 @
  8.     RewriteCond %{QUERY_STRING} ^(.*)$
    ) J3 E+ c& X# ]0 p2 `
  9.     RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1  [0 s2 X; P! T# B* u, G& h/ J8 O
  10.     RewriteCond %{QUERY_STRING} ^(.*)$
    2 w- u! v4 N3 ]% i4 U8 V' p* P
  11.     RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
    : H- o' S* a# j+ u* _# ^0 t
  12.     RewriteCond %{QUERY_STRING} ^(.*)$# E6 i6 r: V! a9 v1 r2 f( g# K! h
  13.     RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%16 w" P& R% o* D' W2 v6 I/ {9 Y
  14.     RewriteCond %{QUERY_STRING} ^(.*)$
    , h; j1 T: T  a1 W! B  ?
  15.     RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
    ; C& K) ?# Y4 i5 `8 S# H/ @
  16.     RewriteCond %{QUERY_STRING} ^(.*)$6 a& ?1 S( {; M' C5 R$ S* ?- |
  17.     RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1. `7 S0 Z: g8 A- W5 G0 z) i
銴鋆賭誨蝣
2./etc/httpd/conf/httpd.conf折
8 u& f9 {! \& J0 ]- b! mLoadModule rewrite_module modules/mod_rewrite.so   銝銵1 l3 j8 l; s: `& }
嗅 httpd ==>  service httpd restart) n9 {# t3 y$ c9 s5 N7 k& @0 e8 x
4 W" x, y3 T7 ]8 ~1 `

! \* O* o, l0 _4 o$ N# W3 W

雿輻券

祉蝛閬

撠蝝詨

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

QQ|撠暺撅||52AV璈A

GMT+8, 2025-12-5 23:34 , Processed in 0.071975 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵