where to put wordpress htaccess on openshift

孤人 提交于 2019-12-12 04:58:02

问题


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 ?


回答1:


If you used our official quickstart, you would need to use an action_hook (probably deploy) to copy a .htaccess file into place, otherwise the files are actually not stored in a place that is affected by git. You could also try using this quickstart( https://github.com/openshift-quickstart/openshift-wordpress-developer-quickstart) where EVERYTHING except for uploads, is stored in git (plugins, themes, etc)



来源:https://stackoverflow.com/questions/25170281/where-to-put-wordpress-htaccess-on-openshift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!