在那里把字preSS的htaccess上openshift [英] where to put wordpress htaccess on openshift
问题描述
我已经克隆了我的话,preSS应用程序从openshift使用Git,我在克隆应用程序有PHP文件夹,当我把我的htaccess的文件在里面,然后我承诺我的变化是这样的:
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
我的htaccess的文件不推在openshift的应用程序库文件夹,但是当我把它通过FTP与FileZilla的工作原理,不使用git。
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.
我不知道我已经把.htaccess文件?如果是在PHP文件夹,为什么它没有上传?
I don't know where i have to put .htaccess file ? if it is in php folder, why it's not uploaded ?
推荐答案
如果您使用我们的官方快速入门,你需要使用一个action_hook(可能部署)复制.htaccess文件到位,否则文件实际上是不存储在受GIT中的地方。你也可以尝试使用该快速入门(的https://github.com/openshift-quickstart/openshift-word$p$pss-developer-quickstart)这里的一切,除了上传,存储在混帐(插件,主题等)
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)
这篇关于在那里把字preSS的htaccess上openshift的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!