Redirecting subdomain to https
June 11, 2008 2:44 PM
Subscribe
I need to redirect all traffic on a subdomain to https instead of http. mod_rewrite is installed, but I don't know how to use it.
So for a couple different subdomains I need to force https in other words I want any requests to:
http://sub1.example.com
to go to:
https://sub1.example.com
I found a couple examples online, but I'm not familiar enough with mod_rewrite and .htaccess files enough to make it work. Help, I'm clueless!
posted by The Radish to computers & internet (7 comments total)
5 users marked this as a favorite
Redirect /webmail https://www.foo.org/webmail
But you could just do:
Redirect / https://www.mydomain.com
posted by autojack at 2:49 PM on June 11