Asked By
Young Hern
10 points
N/A
Posted on - 02/11/2013
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
Redirecting sites in ISAPI Rewrite 3
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.