IIS URL Rewrite Rules?
-
I installed WordPress 1.2.1 on my hosting provider. PHP 4.3.4 is installed as well as mySQL (don’t know the version off the top of my head). However they run on IIS ?? Yeah I know about IIS sucking and Apache being better. Looking at moving to another host but that doesn’t help me right now.
I’m trying to get permalinks working and needing to get URL rewriting on the server. I enabled permalinks in the WordPress admin section with the following settings:
/archives/%year%/%monthnum%/%day%/%postname%/
I was then told to use these rules for URL rewriting:
RewriteEngine On
RewriteBase /
RewriteRule ^archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?category_name=$1&feed=$2 [QSA]
RewriteRule ^archives/category/?(.*) /index.php?category_name=$1 [QSA]
RewriteRule ^archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?author_name=$1&feed=$2 [QSA]
RewriteRule ^archives/author/?(.*) /index.php?author_name=$1 [QSA]
RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/trackback/?$ /wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1 [QSA]
RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1&withcomments=1 [QSA]
I gave this to my hosting provider and they included it but it’s not working.
Here are my questions:
1) Does the rewrite rules that WordPress displays, specific to Apache or do they take into consideration which web server I’m running?
2) If it defaults with only Apache rewrite rules then is there anything I need to alter in the above rewrite rules to make it work with IIS and a windows machine?
Thanks in advanced for any help with this.
- The topic ‘IIS URL Rewrite Rules?’ is closed to new replies.