Wordpress Permalinks include index.php

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 12 Sep 2012, 18:29

Wordpress Permalinks include index.php

12 Sep 2012, 18:49

Hello,

I've gone thru the article, http://www.helicontech.com/articles/isa ... wordpress/ , to try to configure WordPress permalinks but I'm getting 404 errors. Below are the details, settings and rules I'm using:

Server: Windows 2003, IIS 6
Wordpress: 3.4
ISAPI_Rewite: 3.0 lite
WordPress is using a subfolder in the root, e.i. "wwwroot/wordpress/"

The WordPress permalink custom structure is set to:

/%postname%/ (see attached file)

WordPress then advises to add the following to the .htaccess file which is in the .htaccess file in the WordPress folder.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

The Helicon WordPress article advises to put the following in the .htaccess file which has been done:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(\d+)/[^/]+/?$ index.php?p=$1 [NC,L]

When I remove the index.php from the permalink custom structure I get 404 errors but it works with index.php. For example http://www.domain.com/wordpress/index.php/articles/ works but http://www.domain.com/wordpress/articles/ does not.

Does ISAPI rewrite 3.0 work with WordPress on IIS 6? What rules should I add to remove index.php from the path? Do the .htaccess files work on IIS 6 in sub folders? Any suggestions to get this to work?

Thanks!
Attachments
Screen Shot 2012-09-12 at 2.37.28 PM.png
Screen Shot 2012-09-12 at 2.37.28 PM.png (9.82 KiB) Viewed 3768 times

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Wordpress Permalinks include index.php

13 Sep 2012, 00:08

Hello,

The secret here is that you use LITE version. Take a look at the limitations. It doesn't support .htaccess files.
You need to use the rule in httpd.conf instead and apply a condition:

Code: Select all
RewriteCond %{HTTP:Host} ^www\.myDomain\.com$ [NC]


Regards
Andrew

User avatar
Posts: 16
Joined: 13 Nov 2012, 00:19

Re: Wordpress Permalinks include index.php

16 Nov 2012, 22:47

Does this mean only the LITE version has this type of feature?

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Wordpress Permalinks include index.php

17 Nov 2012, 01:50

No it means, you need to use the rules in httpd.conf instead of .htaccess.

regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 9 guests