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.