diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..144290c --- /dev/null +++ b/.htaccess @@ -0,0 +1,9 @@ +RewriteEngine On + +# Force HTTPS +RewriteCond %{SERVER_PORT} !^443$ +RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] + +# Force non-www +RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] +RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]