Apache 2: forward http to https?
I need to forward all requests from http://example.com to https://example.com
The site always starts on the same page (as it has only one function), so I have no need for elaborate rewrite scripts or anything, just basically any request to http://www.example.com/foo/bar/baz.php be forwarded to https://www.example.com/ I am using mod_ssl with apache 2 on a mandrake 10.0 machine. I was thinking of adding: Code:
RewriteEngine on Any tips? |
We have a winner!
Code:
RewriteEngine On :D I googled "apache rewrite http to https" to find it. ("Redirect" was just a bad word I guess, so after trying a few other searches, I finally found something.) |
I use the code above in httpd.conf file but it doesn't work with my https server
I still have to use https://url Any idea why the rewrite doesn't work??? |
All times are GMT -5. The time now is 05:26 AM. |