Rewrite rule for Wordpress with ISAPI_Rewrite 3.0 and IIS6

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 21 Mar 2012, 15:37

Rewrite rule for Wordpress with ISAPI_Rewrite 3.0 and IIS6

21 Mar 2012, 19:31

Hi all,

My client bought the paid version of ISAPI_Rewrite 3.0 and installed in the Windows Server with IIS6. In the other sites in asp, the ISAPI_Rewrite is working well.

But in the new site with Wordpress 3.3.1, the permalink rules aren't working. I don't know why it happens.

My .htaccess file is:
+++++++++++++++++++++++++++++++++++++++++++++
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.89

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

+++++++++++++++++++++++++++++++++++++++++++++

But I found something weird when I run <?php var_dump($_SERVER); ?>, the variables:

- ["HTTP_X_REWRITE_URL"]=>
string(10) "/index.php"

- ["REQUEST_URI"]=>
string(10) "/index.php"

is showing "/index.php" in value. In any page of this wordpress site.

There is a specific configuration to execute?

Sorry, but my English isn't good. And my knowledge in IIS6 is very poor too?

Tks a lot.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Rewrite rule for Wordpress with ISAPI_Rewrite 3.0 and II

22 Mar 2012, 06:46

Hello,

First, please make sure ISAPI_Rewrite filter is not registered twice - on server and site level. It should only be registered globally (for the server).

Also, please clarify what the initial requests are and how you want to handle them.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 19 guests