I'm developing a website using Wordpress on OpenShift. All is ok, except my .htaccess file. Every time I push code using Git, the .htaccess file becomes blank. Even if I push an .htaccess file from my computer through Git. This means that I have to re-configure pretty permalinks every time I push changes via Git.
I tried SSHing into the server in the directory /var/lib/stickshift/xxxxxxxx/app-root/repo/php
- and indeed, before I push any code the .htaccess file is properly populated. The minute I push anything via Git (even when this includes the .htaccess file from my computer) the file is blank.
I'm wondering - perhaps does OpenShift store the .htaccess file somewhere else? But if so, why would it re-set every time I push new code?
If possible, I wouldn't like to move the .htaccess file to a location where I can't access via Git - since it may need to be updated in the future.
If anyone has encountered this issue and has come across a solution, any help/insight would be greatly appreciated.
Regards,
Ian