...
Switch HTTP to HTTPS using Redirect
If According to what I've read when redirecting everything don't bother with a document root,
Code Block |
---|
NameVirtualHost *:80 <VirtualHost *:80> ServerName www.example.com Redirect / https://secure.example.com/ </VirtualHost> <VirtualHost _default_:443> ServerName secure.example.com DocumentRoot /usr/local/apache2/htdocs SSLEngine On # etc... </VirtualHost> |
I've still to try and see if this impacts the entire site. Based on what I see I can't quite grasp how it would...
Switch HTTPS to HTTP using Redirect
...