|
[ol][ISAPI_Rewrite]# Protect httpd.ini and httpd.parse.errors files# from accessing through HTTP# # 形式:/read-PostID.html# # 自定义链接 /read-%post_id%.htmlRewriteRule /Tags/(.*) /index\.php\?tag=$1RewriteRule /(about|contact|about-copyright|favor|archives|tags|sitemap|link) /index\.php\?pagename=$1RewriteRule /Category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?category_name=$1&feed=$2RewriteRule /Category/?(.*) /index\.php\?category_name=$1RewriteRule /author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?author_name=$1&feed=$2RewriteRule /author/?(.*) /index\.php\?author_name=$1RewriteRule /rss.xml /wp-feed\.php/\?feed=rss2RewriteRule /feed/?$ /wp-feed\.php/\?feed=rss2RewriteRule /comments/feed/?$ /wp-feed\.php/\?feed=comments-rss2RewriteRule /read-([0-9]+).html /index\.php\?p=$1 [I]RewriteRule /page/(.*)/?s=(.*) /index\.php\?s=$2&paged=$1RewriteRule /page/(.*) /index\.php\?paged=$1RewriteRule /read-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=$5RewriteRule /read-date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&day=$3&page=$4RewriteRule /read-date/([0-9]{4})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&page=$3RewriteRule /read-([0-9]+).html/(feed|rdf|rss|rss2|atom) /index\.php\?feed=rss2&p=$1RewriteRule /read-([0-9]+).html/trackback /wp-trackback\.php\?p=$1[/ol]复制代码
将上面的保存为httpd.ini上传到WP所在的目录。
自定义链接: /read-%post_id%.html |
|