I have a local site that works on HTTPS with nginx.
I tried to add this code:
# BEGIN Redirect to https / SSL
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# END Redirect to https / SSL
to /…/Documents/Local Sites/app/public/.htaccess
but it’s not redirecting http://mysite.dev to https://mysite.dev
I switched the webserver to Apache and then the .htaccess rule became effective. How do I setup such a redirect on nginx?
Thanks in advance!