Is there anything special that I need to do, in order to enable SSL as the default for a website?
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}
Include etc/apache22/extra/httpd-ssl.conf
To each his own I guess, but I simply add files in /usr/local/etc/apache2[24]/Includes/. If you number them, like 000-default.conf and 001-example.com.conf, you can control which gets loaded first. I do enable and edit extras/httpd-default.conf but that's about it.I uncommented the following line in http.conf
Code:Include etc/apache22/extra/httpd-ssl.conf
I added a VirtualHost section to the httpd-ssl.conf
Apache loads ok but when I try to access a secure page, using Firefox I get an untrusted connection message, and on IE from another machine I get some page "It Works", which I'm assuming is the default install and its not hitting my file at all.
I'm a little concerned about this though it sounds like you got it working. I haven't used Apache in quite a while but I have to combine the intermediate and root certs from some authorities while others do that for you and I think yours did. The key should not be tied into those as I guess you found out.Ok I believe I got it working. I split the intermediate and the web key into two separate files and reconfigured the <VirtualHost> section of the ssl.conf file.... and it comes up, no errors and the padlock is locked.
Since you are doing the whole site in ssl, you want to do a redirect cause rewriting will still accept incoming traffic to non-ssl pages. This splits up traffic count between the two while redirecting combines them all into one. You can also notify Google of this in Webmaster Tools.Is there any SEO impact with Google or Bing with using the redirect versus mod-rewrite?