分享你我的心得.
共乘一片美好网络.

ISAPI_Rewrite 规则(二)

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

# # WordPress rewrite rules# /post/%post_id%.html

RewriteRule /tag/(.*) /index.php?tag=$1
RewriteRule /post/tag/(.*) /index.php?tag=$1

RewriteRule /(about-copyright|favor|archives|tags) /index.php?

pagename=$1

RewriteRule /post/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?

category_name=$1&feed=$2

RewriteRule /post/category/?(.*) /index.php?category_name=$1

RewriteRule /author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?

author_name=$1&feed=$2

RewriteRule /author/?(.*) /index.php?author_name=$1

RewriteRule /rss.xml /wp-feed.php/?feed=rss2

RewriteRule /feed/?$ /wp-feed.php/?feed=rss2

RewriteRule /comments/feed/?$ /wp-feed.php/?feed=comments-rss2

RewriteRule /([0-9]+)/?([0-9]+)?/?$ /index.php?p=$1&page=$2

RewriteRule /post/([0-9]+).html /index.php?p=$1

RewriteRule /page/(.*) /index\.php\?paged=$1

RewriteRule /post/date/([0-9]{4})([0-9]{1,2})([0-9]{1,2})/([^/]+)/?([0-9]+)?/?$

/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5

RewriteRule /post/date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index.php?

year=$1&monthnum=$2&day=$3&page=$4

RewriteRule /post/date/([0-9]{4})/([0-9]{1,2})/?$ /index.php?

year=$1&monthnum=$2&page=$3

RewriteRule /post/([0-9]+).html/(feed|rdf|rss|rss2|atom)/ /index.php?

feed=rss2&p=$1

RewriteRule /post/([0-9]+).html/trackback/ /wp-trackback.php?p=$1

RewriteRule /photo/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?$ /wp-

content/plugins/fgallery/fim_photos.php?$1=$2&$3=$4 [QSA,L,I]

RewriteRule /photo/?(.*) /wp-content/plugins/fgallery/fim_photos.php?

$1=$2&$3=$4 [QSA,L,I]

赞(0)
未经允许不得转载:小叶白龙博客 » ISAPI_Rewrite 规则(二)
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!