|
发表于 2013-3-11 13:35:01
|
显示全部楼层
9 a f" m/ ^: }0 Y3 U" }$ [打开记事本,把下面代码粘贴进去:) L3 M6 w, X! a
[ISAPI_Rewrite]* S6 {7 e6 \- A. @( H8 b, Y- ?9 G
. l! {9 T3 @/ K
# 3600 = 1 hour# D) ]/ u* }/ y) Z1 k
) N; J8 o) I8 }2 ?CacheClockRate 3600
: q6 @; k" }1 R1 t6 h& n* A, c, g
$ U T6 V- O+ y s% `/ x3 cRepeatLimit 32
5 q8 j/ a7 _) ^
( b/ l1 d! `5 p# L6 M1 R5 V# Protect httpd.ini and httpd.parse.errors files: K" o4 W" m9 C/ Q @) i
) Y) I! Q# v3 B* h5 U! V& E# z
# from accessing through HTTP! Y+ b3 ~5 d1 I) ~6 }* Q
9 ]$ D' n7 Q8 e3 n8 N, C# Rules to ensure that normal content gets through
* S9 O! p- f) ^
% t8 G9 o- ^% zRewriteRule /sitemap.xml /sitemap.xml [L]
" V$ @; F3 [. a/ e3 r0 r& ?
! c% k$ o: B B( n7 c8 ?RewriteRule /favicon.ico /favicon.ico [L]! v4 G7 {+ G9 ^/ Z! u5 Y: g; k5 W, y
2 q4 y& v( G: \( y+ a; p
# For file-based wordpress content (i.e. theme), admin, etc.# l5 R. V6 x0 m- m
+ W3 C+ L, y( [# IRewriteRule /wp-(.*) /wp-$1 [L]
- R9 j; j3 E6 X+ K- {$ ]# u3 |: A) F& J W% C4 ^5 Y* q. V; u
# For normal wordpress content, via index.php
8 A. H1 D7 D+ k# b( V8 J' T3 s
' }3 S. \+ a& h6 `* y3 |: ]. n% W6 RRewriteRule ^/$ /index.php [L]
9 z7 S% l' W+ [& d8 T
4 e* m/ J1 h: L4 \RewriteRule /(.*) /index.php/$1 [L] , e0 f2 G; B9 [' }8 d5 f
2 }5 y3 j3 u- p0 i& s# v8 U: i保存时保存类型选择“所有文件”,并输入文件名称:httpd.ini
# s8 u7 U. G9 S+ U) V
) z! g: v0 c. W% l# `将这个httpd.ini文件上传到WP程序所在的目录也就是与index.php在同一个目录内。
/ L8 u5 N4 b2 m8 g6 S$ D' W' B
t, k9 c! w1 X) Z之后进入WP后台修改固定链接,比如:/%category%/%post_id%.html |
评分
-
查看全部评分
|