Forum Moderators: phranque

Message Too Old, No Replies

Redirect any URL from http:// to https://

How do you redirect any URL from from http:// to https://?

         

Sekka

8:49 am on Jul 7, 2006 (gmt 0)

10+ Year Member



Hi.

I am very new to mod_rewrite and as such I haven't had much time to learn everything. Unfortunately, I need to know this quite quickly otherwise I would research it myself.

How do you create a mod_rewrite so that any url entered for "http://secure.mydomain.com/..." goes to "https://secure.mydomain.com/..."?

Thank you!

coopster

12:32 pm on Jul 7, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You don't need to use mod_rewrite, you should be able to just use a RedirectPermanent [httpd.apache.org] Directive.

Sekka

4:04 pm on Jul 7, 2006 (gmt 0)

10+ Year Member



Danke.