Wordpress permalinks error

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 12
Joined: 25 Nov 2012, 07:59

Wordpress permalinks error

09 May 2013, 12:27

Hi,

Having issues trying to activate permalinks on wordpresse.

ISAPI REWRITE Rules:

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

We currently have issues with categories.

Permalinks setup: /%post_id%/%category%/%postname%

Do you have any idea or such rules that works fine with IIS/ ISAPI Rewrite/ Wordpress

Ah IIS 8.

Thanks
Mehdi Blagui

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Wordpress permalinks error

13 May 2013, 07:25

Please try to modify rules as follows:

Code: Select all
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_X_REWRITE_URL} (.+)
RewriteHeader X-Original-URL: (.*) %1

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]



Also I would suggest to use Helicon Ape for IIS 8 instead of ISAPI_Rewrite as it is much more featured and has better Apache compatibility - http://www.helicontech.com/ape/doc/compatibility.htm
With Ape your rules would work without modifications.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 21 guests