Redirecting sites in ISAPI Rewrite 3

Asked By 10 points N/A Posted on -
qa-featured

Hello Techyv Friends,

I am having multiple sites in a single IIS 6 server running in ISAPI Rewrite 3. I would like to redirect one of the sites to https when the request comes as http. It should happen without affecting other sites. Please provide me the redirect syntax for this to get done.

Thanks,

Young Hern

SHARE
Answered By 0 points N/A #189198

Redirecting sites in ISAPI Rewrite 3

qa-featured

Yes it can, and you may wish to use AN Apache htaccess file to rewrite the request. it'll got to be organized in your host config if you're victimizes one in order that you'll match on the port, as Apache does not understand what https is in htaccess.

 

RewriteCond % ^443$

RewriteRule ^ (. *) $ http://example.com/$1 [L, R=301]

 

This should send something incoming on HTTPs to the matching page on http

Oh yes, I ought to mention that this can get to be in yours .Htaccess go on the basis of your web site, or within the folder you wish to send. You will additionally get to make sure that in your httpd. conf or vhost. conf (depending on config) that you just have AllowOverride organized, otherwise your htaccess won't be scanned.

Related Questions