|
|
发表于 2013-3-11 13:35:01
|
显示全部楼层
% D; e' i5 ~4 {% g2 h打开记事本,把下面代码粘贴进去:
7 B7 K% ?" g* {- j* d" ], K[ISAPI_Rewrite]
0 w- O$ D& L9 s1 Z' d' }8 n) l: |; A- s3 ?. p" i
# 3600 = 1 hour: G- r( `- m3 Q! Y1 ?
& B6 W2 {! i+ ]; g1 eCacheClockRate 3600
9 \' ], o% t% q& J& p; z4 S
/ ^! R7 Y/ g7 k4 k6 g4 _% O2 o+ ~RepeatLimit 32; x5 @) v: P; f5 Q
4 j2 B% |5 s: s& v9 T, S, x D- ?
# Protect httpd.ini and httpd.parse.errors files7 u* D3 g+ q# A( i3 k
0 [& r5 O% ^" b$ n. x, N, t5 s
# from accessing through HTTP
' _& B3 M+ l8 U+ K, F; I# H
4 ^' C4 X* I3 d+ u5 _# Rules to ensure that normal content gets through
/ i: D/ e. S' s0 a. }0 X
& R! g6 e; p6 S3 t9 hRewriteRule /sitemap.xml /sitemap.xml [L]4 F+ t3 ]3 ~9 p) K5 W1 k3 T
5 n+ G4 Z. z& J+ x% P! x) @RewriteRule /favicon.ico /favicon.ico [L]; m6 n6 q1 p: c0 Q9 j6 z
! s& O( @( p1 @* W
# For file-based wordpress content (i.e. theme), admin, etc.
# _5 }3 r& x) C) E/ Z' J u0 [' K
RewriteRule /wp-(.*) /wp-$1 [L]
- `- F. o* c+ {- Z3 T! s" P. ]- x/ `4 p9 r& K; |7 o# l
# For normal wordpress content, via index.php
' N1 x* f1 H# k8 u3 v$ r- i
! \/ T2 R# s$ j2 I& W* x0 WRewriteRule ^/$ /index.php [L]
' V7 q& Y% z- c; Q
5 j3 F( q; |" r2 eRewriteRule /(.*) /index.php/$1 [L] - l- f! |9 }; g
8 m0 H0 Q, k4 v
保存时保存类型选择“所有文件”,并输入文件名称:httpd.ini h( v3 s+ p0 C6 H' x3 M
$ P- r$ g* a) B3 A( t: h7 ?- j将这个httpd.ini文件上传到WP程序所在的目录也就是与index.php在同一个目录内。+ U7 `% Z& Y2 h4 l) c: H' }4 h
( _7 M+ B& G+ l4 `3 c2 d
之后进入WP后台修改固定链接,比如:/%category%/%post_id%.html |
评分
-
查看全部评分
|