Apache2 .htaccess redirect to https not working
问题 I realize this is a question that was answered a lot but the other solutions are not working for me for some reason. I am trying to rewrite http as https but I am still getting 'Bad Request' when I try to browse my website using http. Here is the code in my .htaccess: RewriteEngine on RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] I have AllowOverride All in the VirtualHost config and I made sure mod_rewrite is enabled. Any help is appreciated. Let me