Rewrite rule for Wordpress with ISAPI_Rewrite 3.0 and IIS6
2 posts
• Page 1 of 1
Rewrite rule for Wordpress with ISAPI_Rewrite 3.0 and IIS6
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.
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.
Re: Rewrite rule for Wordpress with ISAPI_Rewrite 3.0 and II
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.
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.
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 19 guests