|
|
发表于 2013-3-11 13:35:01
|
显示全部楼层
4 E8 U( B( L7 K- P: d打开记事本,把下面代码粘贴进去:& I2 {" X6 l; S! g
[ISAPI_Rewrite]
: l* X- [* d/ \$ W6 n! M7 ?
& g1 D8 r! X F, J" o' S# 3600 = 1 hour& I0 n6 e3 a( q4 e1 n9 }2 N
' V F) }0 ^, v3 ^! w# p0 @CacheClockRate 3600
+ p! U2 O) }9 W9 y; F8 ?' b' k0 H' K
RepeatLimit 32
# W9 v2 J* i0 u% d' H, x$ S/ X! N6 a
# Protect httpd.ini and httpd.parse.errors files
' i: {$ i) }; Q2 C: y! H* m$ A9 I( s" S& ]! g8 Z$ t- |
# from accessing through HTTP
! e9 U. I6 G6 w; e9 V
7 j0 x* D G4 }# Rules to ensure that normal content gets through4 O6 j5 |# o/ U! g
- X8 ?. p+ T& H& NRewriteRule /sitemap.xml /sitemap.xml [L]
: X' |0 j' Y, |! i
4 h. L9 h! v& B+ JRewriteRule /favicon.ico /favicon.ico [L]% x6 w# @- V0 o0 R
) A& x4 E0 X3 c0 ]: I" n+ b6 f# For file-based wordpress content (i.e. theme), admin, etc.2 w6 I/ _' ]6 u7 e3 x9 a5 U. b/ i" q
3 v. J9 r# x. Y( p4 {6 s5 a1 X% l/ j
RewriteRule /wp-(.*) /wp-$1 [L]
. I" S) o7 N! F% H. p1 T5 l9 C s
# For normal wordpress content, via index.php; }8 H) j# [- g W% Y. i
P4 k* k5 Z6 ?- f2 F/ k' g8 _RewriteRule ^/$ /index.php [L]8 k; J3 e: T7 D. ^ g0 r
) |: h- K1 Y G6 ORewriteRule /(.*) /index.php/$1 [L]
; j# v" l# h8 X; l; u1 E% d- }4 D o; H5 l
保存时保存类型选择“所有文件”,并输入文件名称:httpd.ini
) e" R! K; s" `2 u. }0 `' ]
& ^, |' c3 p% P4 @4 Y. n将这个httpd.ini文件上传到WP程序所在的目录也就是与index.php在同一个目录内。
% B0 @9 q. J% r5 G8 s
% o/ [/ ?1 I5 ?& n之后进入WP后台修改固定链接,比如:/%category%/%post_id%.html |
评分
-
查看全部评分
|