ISAPI_Rewrite affected all websites
4 posts
• Page 1 of 1
ISAPI_Rewrite affected all websites
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!
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!
Re: ISAPI_Rewrite affected all websites
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.
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.
Re: ISAPI_Rewrite affected all websites
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
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
Re: ISAPI_Rewrite affected all websites
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.
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.
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 12 guests