WordPress URL Rules _win server under window2003 IIS ISAPI rewrite

Source: Internet
Author: User
In order to facilitate the search engine crawl (in other words is false static), the following is the rules of the URL rewrite, the effect of looking at my Chinadigger link address. My current rewrite rule:
Copy Code code as follows:

[Isapi_rewrite]

# 3600 = 1 hour
Cacheclockrate 3600

Repeatlimit 32

# Protect Httpd.ini and Httpd.parse.errors files
# from accessing through HTTP
# WordPress Rewrite rules#

rewriterule/tag/(. *)//index\.php\?tag=$1
Rewriterule/(About-me|about-copyright|guest-book)//index\.php\?pagename=$1
rewriterule/author/(. *)/(Feed|rdf|rss|rss2|atom)/?$/wp-feed\.php\?author_name=$1&feed=$2
Rewriterule/author/? (. *)/index\.php\?author_name=$1
rewriterule/feed/?$/wp-feed\.php/\?feed=rss2
rewriterule/comments/feed/?$/wp-feed\.php/\?feed=comments-rss2
rewriterule/page/(. *)//index\.php\?paged=$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]

#/%year%%monthnum%%day%/%postname%/

rewriterule/category/(. *)/(Feed|rdf|rss|rss2|atom)/?$/wp-feed\.php\?category_name=$1&feed=$2
rewriterule/category/? (. *)//index\.php\?category_name=$1

Rewriterule/([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/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$/index\.php\?year=$1&monthnum=$2&day=$3&page=$4
Rewriterule/([0-9]{4})/([0-9]{1,2})/?$/index\.php\?year=$1&monthnum=$2&page=$3

Rewriterule/([0-9]{4}) ([0-9]{1,2}) ([0-9]{1,2})/([^/]+)/(Feed|rdf|rss|rss2|atom)/?$/index\.php\?year=$1& Monthn&day=$3&name=$4&feed=$5
Rewriterule/([0-9]{4}) ([0-9]{1,2}) ([0-9]{1,2})/([^/]+)/trackback/?$/wp-trackback\.php\?year=$1&monthnum=$2 &day=$3&name=$4&tb=1

#/post/%post_id%.html

Rewriterule/([0-9]+)/? ([0-9]+)?/?$/index\.php\?p=$1&page=$2
# rewriterule/post/([0-9]+)/? ([0-9]+)?/?$/index\.php\?p=$1&page=$2
rewriterule/post/([0-9]+). html/index\.php\?p=$1 [I]

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/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



How to use (Install Wordpres in the root directory)

Go to discuz.net forum download rewrite compression package, and then follow the installation method in the IIS inside configuration good rewrite, with the above rules cover Httpd.ini original content, and then to the background of WordPress, the option of the permanent link part, the use of custom, and then fill in the box inside the thick The contents of the body part (two choose one, of which #/post/%post_id%.html is not perfect), you can.

This article references the rules written by Bluefeel. There is a problem in the original tag, I have changed the finished, we should pay attention to the writing, otherwise it will affect other IIS site directory.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.