Then it seems like I am just going to have to remember to swap out the htaccess file from the dev site when I want to write a new post. Because if I put it in gitignore, it gets deleted from the production site when I sync.

Unless there's another way, he said hopefully.

So, is there a way to get the Let's Encrypt certificate working also on localhost?

//

Yup. That was it. Now all I need to do is remind Github to ignore that file.

Wait a minute. You've jogged my memory. When I installed let's encrypt on the live site, I changed the htaccess, I think.So maybe I need to change it back on the dev site.

OK. Thanks.

Every time I try to type http:// the browser inserts https://

No idea how/why that happened, or how to fix it.

//

But Chrome also added the https. Hang on.

//

Chrome says: This site can’t provide a secure connection

www.localhost sent an invalid response.
ERRSSLPROTOCOL_ERROR

Safari just keeps putting them back in. I'll try in Chrome.

Just in case there are people here who aren't there (with apologies for cross-posting):

Trouble with MAMP

Servers start OK and can reach phpinfo and index of site, but attempt to access admin of site gives:

Safari can’t open the page “https://www.localhost:8888/grav-blog/admin” because Safari can’t find the server “www.localhost”.

Help!