|
|
发表于 2013-3-11 13:35:01
|
显示全部楼层
6 U& q' A; K/ k% X6 O+ [
打开记事本,把下面代码粘贴进去:
$ r* G9 {4 n' x" L/ Q[ISAPI_Rewrite]0 h9 { R" w. n/ W( U3 N
, G- Q6 K2 I! i# 3600 = 1 hour3 L) D9 q T4 }7 C/ Y8 i
^7 t; F0 z1 }9 aCacheClockRate 36003 Z: X% @' _7 n7 d$ M% u0 z( z
! f3 m; K0 _; P, s
RepeatLimit 32
- |2 v8 V# b% |0 Q3 y- R' @
3 h i K) Y% K( q/ h/ A y& y# Protect httpd.ini and httpd.parse.errors files5 p4 w+ G" M4 p
( i) S" p) g7 B# x3 `
# from accessing through HTTP( Z$ E4 m$ O9 s# I$ ^& f% P6 c
( ^% t$ P1 B8 i/ A/ x2 j; o# Rules to ensure that normal content gets through
. {8 s' c. E, n
5 w5 W3 Q% u( H. A0 `% Z. IRewriteRule /sitemap.xml /sitemap.xml [L]0 ^7 g9 O6 t' ]' y# l5 o, M
; I* h" V6 t' T/ v' z1 K# HRewriteRule /favicon.ico /favicon.ico [L]
! P4 q& ]) p: N7 Y, G4 |0 g7 _! w# y7 G, p. H
# For file-based wordpress content (i.e. theme), admin, etc.
* D, e, k7 P6 s; H2 M) E3 a/ L% M/ n! t2 M- c- Z
RewriteRule /wp-(.*) /wp-$1 [L] i3 x! B1 U1 [- N( V
* T5 {& {+ n6 ~2 B
# For normal wordpress content, via index.php8 S. c" G) B, F* i% B! k4 R+ [+ u
6 z# {1 j, O# T, D$ B; M
RewriteRule ^/$ /index.php [L]# o! A Y$ ^6 }- ~+ S# q9 q5 s5 L/ F
! b' F2 r8 h# e
RewriteRule /(.*) /index.php/$1 [L] $ z. ?9 S0 U1 \+ m1 ]+ j2 b. G0 r
3 q) F4 d9 b d& O1 q保存时保存类型选择“所有文件”,并输入文件名称:httpd.ini# J) |; a' q3 Y$ U+ Z
3 \+ V9 M- E- w3 Q( [将这个httpd.ini文件上传到WP程序所在的目录也就是与index.php在同一个目录内。
# i6 H+ w9 y+ p- x
( t; u' z1 |+ @% q I之后进入WP后台修改固定链接,比如:/%category%/%post_id%.html |
评分
-
查看全部评分
|