Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: mod_rewrite and mod_ssl |
|
Author |
|
mphare
Joined: 12 May 2006 Posts: 43 Location: Texas
|
Posted: Wed 19 Jul '06 22:45 Post subject: mod_rewrite and mod_ssl |
|
|
I want all http requests on my apache 2.2.2 server to be served by https (mod_ssl)
This is what I've added to the conf file:
Code: | <IFModule rewrite_module>
ReWriteEngine On
ReWriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
</IFModule> |
This seems to be working for everything except the root home page.
That is still served by http. How can I make the home page served by https as well? |
|
Back to top |
|
Jorge
Joined: 12 Mar 2006 Posts: 376 Location: Belgium
|
|
Back to top |
|
mphare
Joined: 12 May 2006 Posts: 43 Location: Texas
|
Posted: Wed 19 Jul '06 23:10 Post subject: |
|
|
Thanks! Seems to be working for me too |
|
Back to top |
|
|
|
|
|
|