Tag Info

New answers tagged

2

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Should do the trick.


1

Few things to try: 1) This could be because you have localbost setup as a hostname which would more and likely trigger the default, check in /etc/hostname or opt use a FQDN such as web.localhost 2) Another thing to try is putting Default at the bottom rather than top as those higher get more priority. 3) Obvious fix don't use localhost as a vhost :) I'm ...



Top 50 recent answers are included