|
发表于 2013-3-11 13:35:01
|
显示全部楼层
# ^3 S" v9 r. X9 v) p# K. K t打开记事本,把下面代码粘贴进去:
" B) D! K- K4 V* ?[ISAPI_Rewrite]
6 E5 P. d) T0 s* c' G) r
/ I& e! \" ~7 N" U+ l4 [# 3600 = 1 hour# \, r1 _$ Q% Z I
3 o0 S3 g- W0 f: T! I" ^CacheClockRate 3600
! E# e- C$ h7 {5 q1 `2 |3 G/ _
% C; A' S' }( W: H/ b2 @. c( [RepeatLimit 32# ]+ Y5 D& k. q' {- Y# @9 B8 G# `
% Q* X# ~! Z, p* b# Protect httpd.ini and httpd.parse.errors files
. e& Y1 V% Z# `6 P, y- Z3 F
5 Q' X; ?# ^& h6 T" t9 f, e% a7 d2 L! u# from accessing through HTTP. j5 ~! M7 _# ^5 @! m, n; y
, X% W" U9 t. A1 t# @2 ?: N' s
# Rules to ensure that normal content gets through" i3 Q1 ^% ? W2 r
7 ?* R) P: K( ?/ q+ N# x% p5 [
RewriteRule /sitemap.xml /sitemap.xml [L]
0 e9 g, D; P6 _/ G+ G: g( `' a# h" l1 \% h# X* z
RewriteRule /favicon.ico /favicon.ico [L]
: _: H& d# [0 Q# Z$ [0 A2 n& G9 C C5 K% t
# For file-based wordpress content (i.e. theme), admin, etc.
3 D5 R; P. G+ R6 M I. T- h6 i! i$ Q- D/ k
RewriteRule /wp-(.*) /wp-$1 [L]% M; a; y! T( Z2 }
9 s6 F$ ^4 @) E& J; C# For normal wordpress content, via index.php
. U5 I+ W2 S4 v
' K4 L# Z$ J6 M) A% K( v- zRewriteRule ^/$ /index.php [L]
9 M' P: L0 k4 M3 A+ G% T9 T, _0 T% g& N& s# k
RewriteRule /(.*) /index.php/$1 [L] / E3 x# O$ |$ |3 P I: k- G
3 ~) I9 s. n# B$ e, b/ {1 v8 d
保存时保存类型选择“所有文件”,并输入文件名称:httpd.ini7 Y. x6 P% c# }6 J2 Z; j5 p: V
0 F( v4 k4 L5 q7 X! q- D
将这个httpd.ini文件上传到WP程序所在的目录也就是与index.php在同一个目录内。
; G3 [ I$ f* j5 O$ \' T% l& i5 H/ U/ L& E9 N7 R5 p; f
之后进入WP后台修改固定链接,比如:/%category%/%post_id%.html |
评分
-
查看全部评分
|