|
发表于 2013-3-11 13:35:01
|
显示全部楼层
( Q1 E J; t+ {# n; n打开记事本,把下面代码粘贴进去:/ V2 M: M3 \* W" \
[ISAPI_Rewrite]9 X+ `7 ~& ]- o* U) `3 w0 Q5 R
" w( Y& r! X/ _# 3600 = 1 hour0 m3 S; Q/ i2 u: e4 N. g0 ^
5 I1 [% i8 L9 j, D7 N1 [ f
CacheClockRate 3600
( F' e: d9 |% @( O# B
) {% u( [+ A& c5 o6 e% oRepeatLimit 322 S7 |. W9 n4 \0 r
0 L }1 \: A, G: Q+ K! H
# Protect httpd.ini and httpd.parse.errors files
# y7 M% J2 q+ c9 P# z; ]% L$ v, g& w6 O+ Y+ T
# from accessing through HTTP
" x0 m$ Z% n; v. o2 l) J* |( P8 y3 z
# Rules to ensure that normal content gets through8 f4 u& B4 X- C* p8 N+ `. ]6 w
5 x$ D/ ~" n, E. ?- S& ]RewriteRule /sitemap.xml /sitemap.xml [L]5 n. _3 E" E; Q. Q6 B! R8 G7 R
: s& q1 i3 ^7 d' ]RewriteRule /favicon.ico /favicon.ico [L]
0 n: U1 I8 ~5 w8 X& A
M/ D: z4 [7 w0 t- j; r6 A2 D$ v" k# For file-based wordpress content (i.e. theme), admin, etc.
0 i8 p: f) u, [, b0 X' E7 D( c
* u) Y& x: m y# ARewriteRule /wp-(.*) /wp-$1 [L]$ g3 a: |' O1 q; |
- k6 _0 m y' g% M3 @
# For normal wordpress content, via index.php# R8 n( g' T: o& T( z$ o; Z
9 E, |1 N; `! P, M) P9 GRewriteRule ^/$ /index.php [L]3 \7 |5 O ?# E7 p
: V+ O& Y3 F5 K, M( RRewriteRule /(.*) /index.php/$1 [L]
+ w+ O6 [3 A" R8 t1 A( W, H- G% f9 W4 k5 H3 G J$ p1 E# f
保存时保存类型选择“所有文件”,并输入文件名称:httpd.ini3 F: a( p# ?$ X3 ]4 j) b
+ s6 K- D$ _0 o) I3 {, S, s9 U
将这个httpd.ini文件上传到WP程序所在的目录也就是与index.php在同一个目录内。5 }+ f. ]0 V+ U( I7 l# V8 j) \
9 H0 @& z3 a$ I
之后进入WP后台修改固定链接,比如:/%category%/%post_id%.html |
评分
-
查看全部评分
|