|
|
发表于 2013-3-11 13:35:01
|
显示全部楼层
3 c [. a: N- r: t8 u; \
打开记事本,把下面代码粘贴进去:
( D. C: a* I7 B[ISAPI_Rewrite], j* m& o4 N+ k1 Q) `
1 K. [6 g) S9 y( i! Z) }4 d" A# 3600 = 1 hour
3 ?6 r6 S9 w( h/ K$ V1 K6 S$ t8 W4 C$ p
CacheClockRate 36002 Y$ l5 I' U9 \# L. R3 {* x
o4 j* s( V5 \RepeatLimit 321 a4 ]* ]) s9 r
) j }2 n. O6 {" q5 C# p5 f% f# Protect httpd.ini and httpd.parse.errors files
6 n% v" b! ^. d) l
3 U0 Z- l V2 N' v2 S# u' l# from accessing through HTTP
& J) o S. A6 d; C* L
' I& {7 \1 D0 K: A" z" r2 W: O# Rules to ensure that normal content gets through
$ V' S7 @! p/ @+ Q4 ^! A) f' G
3 P2 T: M1 Y8 y Y' d' L8 N: MRewriteRule /sitemap.xml /sitemap.xml [L]! @0 L: Z) B% s6 @& u. _
0 Q8 e, G. O0 c
RewriteRule /favicon.ico /favicon.ico [L]
8 x _9 }" _7 J8 a( n% X4 w/ }+ h ^; ] g r. m& ^% |( _
# For file-based wordpress content (i.e. theme), admin, etc.* ^4 J6 \ R4 _1 V8 P
; F' @8 Z& Y: X) ^3 KRewriteRule /wp-(.*) /wp-$1 [L]
# ~: ~- `6 r5 Q7 _: n
9 ~& x: e( j y$ i# z! V6 W6 z# For normal wordpress content, via index.php
4 t, n5 e# R; j; R! K0 Z3 l
3 C- I5 r, U/ ]" SRewriteRule ^/$ /index.php [L]! F r- U( y! X
G9 ?% Z8 a' I& ]3 n0 cRewriteRule /(.*) /index.php/$1 [L] # _, { u# T( w9 T$ o
+ G$ S: H: N8 S5 [( l
保存时保存类型选择“所有文件”,并输入文件名称:httpd.ini
M7 F0 ]5 K6 `+ U
: C% n$ u- n3 N& u3 X9 Q: Z, G% a" v将这个httpd.ini文件上传到WP程序所在的目录也就是与index.php在同一个目录内。
9 [. D0 |8 X) `2 k
. g# d% H- v3 R之后进入WP后台修改固定链接,比如:/%category%/%post_id%.html |
评分
-
查看全部评分
|