|
|
发表于 2013-3-11 13:35:01
|
显示全部楼层
. R. C$ q# C U" S
打开记事本,把下面代码粘贴进去:; Z6 D; T6 i% t A+ K6 j# m
[ISAPI_Rewrite]9 b# N3 i7 N% F0 I5 C0 B9 N
4 j2 K, V" D% }8 H% T3 `& Q# 3600 = 1 hour
# M; M% H) h% s4 g. K- F4 Y- {' ~" S0 B* Y {, U3 _$ S
CacheClockRate 3600
& `& c/ o+ j5 w: I* I8 q! R' h3 H5 n9 i, e5 `; ^
RepeatLimit 32
) W, Q; v: l, E Z+ [
0 I6 @# {( m" o! m$ F4 R# Protect httpd.ini and httpd.parse.errors files l3 B# }! J$ h$ S+ F
6 C P Z& a/ e! _7 a' L9 s
# from accessing through HTTP
: J# o2 k* T) S' r' k& C. ]* N, k3 S( R+ L$ @
# Rules to ensure that normal content gets through! [; }4 U9 b8 E* T/ f
u9 h0 u. B8 n2 }1 t! {2 Y3 ZRewriteRule /sitemap.xml /sitemap.xml [L]% M4 N* g3 r, n* y; c" q+ A. y5 n. n
" N! d5 Q9 q- ^0 {( Z8 tRewriteRule /favicon.ico /favicon.ico [L]. Q3 H [0 d; N7 d6 l0 u
g) j, G* ? H5 F& a
# For file-based wordpress content (i.e. theme), admin, etc.
8 [% d: I9 ~, k
b1 l8 D# N' u& V [$ gRewriteRule /wp-(.*) /wp-$1 [L]
( _; E' {' P6 }# ~
& L b& a; \* V$ b* P9 ^# For normal wordpress content, via index.php; u' O8 H4 b+ y9 |( M6 n
. B6 ? U5 @, D
RewriteRule ^/$ /index.php [L]: N9 G# X0 S6 K
a6 v% Q7 _1 K1 V" F
RewriteRule /(.*) /index.php/$1 [L]
/ \; ?+ k: Q* a* a8 [3 m5 F8 l
- h& P3 X9 }4 |1 g; c0 |. d$ C5 Z保存时保存类型选择“所有文件”,并输入文件名称:httpd.ini
' ?( }+ ]2 S3 s( o- p* x( J* I4 {0 c* ~
将这个httpd.ini文件上传到WP程序所在的目录也就是与index.php在同一个目录内。
) O V' m/ n" p% I
% D! d2 t3 n; h. p7 v之后进入WP后台修改固定链接,比如:/%category%/%post_id%.html |
评分
-
查看全部评分
|