Problems with permalinks, httpd.ini and ISAPI_Rewrite 2
-
Hi,
I am running WordPress 2.7 on IIS 6 and my host has installed ISAPI_rewrite by (http://www.isapirewrite.com).
I have the following in my httpd.ini
[ISAPI_Rewrite]
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 /author/(.*)/(feed|rdf|rss|rss2|atom|rss2_comments)/?$ /index.php\?author_name=$1&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]and posts work a treat using the structure:
/%year%/%monthnum%/%postname%/
the trouble is that when I try to view pages I get a 404 error. The structure of the page is:
http://landroveroneten.com/name-of-my-page/
Can anyone help me with the rewrite rule that I need to add to httpd.ini to allow me to view pages with this structure.
thanks,
Hedley
- The topic ‘Problems with permalinks, httpd.ini and ISAPI_Rewrite 2’ is closed to new replies.