ISAPI_Rewrite affected all websites

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 27 Apr 2012, 19:40

ISAPI_Rewrite affected all websites

27 Apr 2012, 19:55

Hi!

I install the ISAPI_Rewrite in an windows server (IIS 6) and added the ISAPI filter to only one of the sites i'm running there, but seems that any rule that I add to the httpd.conf file affect all the websites even they don't have the filter applied.

I tried to add a virtual host tag but doesn't seems to work, here is my httpd.conf content:

---------
RewriteEngine off

<VirtualHost blog.planetupads.com>

RewriteEngine on

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(index\.php)*(.*)$ index.php/$2 [NC,L]

</VirtualHost>
---------

Any ideas on what to add to the conf file so the rules only apply to only one site?

Thanks!

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

Re: ISAPI_Rewrite affected all websites

30 Apr 2012, 06:46

Hello,

Firstly, when ISAPI_Rewrite is installed automatically, it is registered globally (for entire server).
But that's not a problem. If you need the rules to be applied to one site only, put them into the .htaccess file in the root of the target site.

P.S. I believe you have Full, not Lite version.

User avatar
Posts: 2
Joined: 27 Apr 2012, 19:40

Re: ISAPI_Rewrite affected all websites

30 Apr 2012, 16:03

Thanks Anton,

I read .htaccess files are not supported by IIS, but I create one and placed in the root folder of my site.

It didn't work.

I also unistalled ISAPI_Rewrite and register the dll in the ISAPI filter tab of my site, but didn't work.

The file i'm using is: ISAPI_Rewrite3_0089_Lite.msi

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

Re: ISAPI_Rewrite affected all websites

03 May 2012, 04:25

Hello,

So, you are using Lite version, that's why .htaccess and <VirtualHost> don't work for you.

In your case you can try the following syntax in httpd.conf:

RewriteEngine on
RewriteBase
RewriteCond %{HTTP_HOST} blog\.planetupads\.com [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/(.*)$ /index.php/$1 [NC,L]

If it doesn't work, please clarify the syntax you had (how it is supposed to work), because I changed it a bit.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 12 guests