How to use Wordpress SEO Friendly URLs on Windows Server using ISAPI_Rewrite
The SEO friendly URLs in Wordpress don’t seem to work natively on a Windows server as Windows doesn’t support URL rewriting without addons.
You can download ISAPI_Rewrite 2 here. Just install it and add the following regular expressions into the httpd.ini file:
[ISAPI_Rewrite]
# Wordpress Rewrites
RewriteRule /([0-9]{4})/([0-9]{1,2})/ /index.php\?year=$1&monthnum=$2 [I,U,O]
RewriteRule /([0-9]{4})/([0-9]{1,2})/(.*)/(feed|rdf|rss|rss2|atom|rss2_comments)/?$ /index.php\?feed=$4&name=$3 [I,U,O]
RewriteRule /([0-9]{4})/([0-9]{1,2})/(.*)/trackback/?$ /wp-trackback.php\?year=$1&monthnum=$2&name=$3 [I,U,O]
RewriteRule /category/(.*)/(feed|rdf|rss|rss2|atom|rss2_comments)/?$ /index.php\?category_name=$1&feed=$2 [I,U,O]
RewriteRule /category/(.*) /index.php\?category_name=$1 [I,U,O]
RewriteRule /tag/(.*)/(feed|rdf|rss|rss2|atom|rss2_comments)/?$ /index.php\?tag=$1&feed=$2 [I,U,O]
RewriteRule /tag/(.*) /index.php\?tag=$1 [I,U,O]
RewriteRule /author/(.*)/(feed|rdf|rss|rss2|atom|rss2_comments)/?$ /index.php\?author_name=$1&
amp;feed=$2 [I,U,O]
RewriteRule /author/?(.*) /index.php\?author_name=$1 [I,U,O]
RewriteRule /([0-9]{4})/([0-9]{1,2})/?(.*) /index.php\?name=$3 [I,U,O]
RewriteRule /feed/(.*) /wp-rss2.php [I,U,O]
RewriteRule /comments/feed/(.*) /wp-commentsrss2.php [I,U,O]
RewriteRule /about/? /\?page_id=2 [I,L]
RewriteRule /page/? /index.php\?paged=$1 [I,L]
The above rules will rewrite your urls to work with the following mask:
/%year%/%monthnum%/%postname%/