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
Spent much time on this without luck today. Have you managed to get this working with your setup?
Been reading about the move away from .dev domains and how best practice to develop with https, so i suspect it might be good to have this setup like this on local as a default. What do you think?
I tried adding your solution in my site.conf file and somehow I forgot to save the file with my URL and now every time click on View Site from the Flywheel Local app, I get my site dev.local to display for an instant and then it redirects to https://domain_goes_here.
I have uninstalled the app and started fresh many times but I can’t seem to get rid of this redirect. If I enter my site’s URL in the browser, it displays my site fine. The redirect only occurs when I click on View Site.
Any suggestions on clearing this permanent or so it seems redirect?