|
|
发表于 2013-3-11 13:35:01
|
显示全部楼层
/ U# B- F0 Y4 J5 j8 b' u' i( n打开记事本,把下面代码粘贴进去:9 q% \6 G3 J: ^5 ^& r. r
[ISAPI_Rewrite]6 b. Z4 _9 c: ^( {' X [; c: \! m
3 O2 g5 t& a5 e. Q1 R+ i- I
# 3600 = 1 hour
3 ? X, I% @" C% O3 }* u# O* S/ ~
CacheClockRate 3600
# d- b4 E- g& w4 R; G
3 J3 V# ?: ~3 P& O( U0 j; jRepeatLimit 32' F7 E7 r d! E4 _1 N9 J7 `
4 Z1 E9 c' A+ K! T/ i0 p# x! y+ o# Protect httpd.ini and httpd.parse.errors files. A' U: \9 t8 _: Z5 U- p; L
# f' H2 z3 |; P8 M( j
# from accessing through HTTP
+ W( I7 c* Y8 j$ i9 |) k6 w t7 b+ }, |3 A" O9 a% U
# Rules to ensure that normal content gets through4 ?: _4 F. X# J& @& t; I6 b5 L
6 n# t5 I: U# o8 G$ U! I
RewriteRule /sitemap.xml /sitemap.xml [L]
) [6 K( Q0 U, {$ h" k
. ^ K9 Q8 b- ~% |4 l# ~RewriteRule /favicon.ico /favicon.ico [L]
% e( P. [& y) y( D; Y, d6 z% F. o( @! h }/ L `2 r7 r% _
# For file-based wordpress content (i.e. theme), admin, etc.7 m* U# T& q) m4 U8 ?: n
* U, v' o! B3 O4 V3 r0 o/ cRewriteRule /wp-(.*) /wp-$1 [L]
( g, `/ ]4 A9 g- Y Z! c2 N" B
8 w# q$ H; `8 V- ]2 C' B. ^6 z# For normal wordpress content, via index.php c$ d( T) b M
# P5 ~6 q: ~5 |( I- C: ~/ jRewriteRule ^/$ /index.php [L]# M! \, m9 @' X9 d- u
% F- Z5 [! n7 b8 v" K) bRewriteRule /(.*) /index.php/$1 [L] 4 G, P1 [5 i2 N$ N8 u0 M' a, r
% v& i9 ^& q' C保存时保存类型选择“所有文件”,并输入文件名称:httpd.ini+ K: u1 }+ P; K R: i1 ]" J
5 A6 n k( _; ~. c7 X8 o
将这个httpd.ini文件上传到WP程序所在的目录也就是与index.php在同一个目录内。
- h! {* F% {- @2 ]5 X) o! h) u6 {3 Y# D# Z7 R5 {3 m% g$ u8 `: b/ c0 a( {
之后进入WP后台修改固定链接,比如:/%category%/%post_id%.html |
评分
-
查看全部评分
|