WordPress – where to put wordpress htaccess on openshift

.htaccessopenshift-online-2Wordpress

I have cloned my wordpress application from openshift with git, in my cloned application there is php folder, when i put my htaccess file in it then i commit my changes like this :

git add -A
git commit -m 'ok'
git push

My htaccess file is not pushed in the application repository folder on openshift, but when i put it via ftp with filezilla it works, not with git.

I don't know where i have to put .htaccess file ? if it is in php folder, why it's not uploaded ?

Best Answer

Create (and git add) a .htaccess in the .openshift/config directory. The deploy action_hook will copy it to the correct directory (/app-root/data/current) at deployment.

Related Topic