在openshift上放置wordpress htaccess的地方

我克隆了我的wordpress应用程序从git openshift,在我的克隆应用程序有php文件夹,当我把我的htaccess文件,然后我提交我的更改,如下所示:

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

我的htaccess文件没有在openshift的应用程序库文件夹中推送,但是当我通过ftp与filezilla它工作,而不是与git。

我不知道我必须把.htaccess文件? 如果它在PHP文件夹,为什么不上传?

在.openshift / config目录中创build(和git add).htaccess。 部署action_hook将在部署时将其复制到正确的目录(/ app-root / data / current)。

.htaccess应该在您的应用程序的根目录而不是/ php文件夹中。 例如:

 wordpress git:(master) ls -la total 32 drwxr-xr-x 11 User staff 374 Aug 13 17:03 . drwxr-xr-x 4 User staff 136 Aug 13 16:56 .. drwxr-xr-x 13 User staff 442 Aug 13 17:07 .git -rw-r--r-- 1 User staff 9 Aug 13 16:56 .gitignore -rw-r--r-- 1 User staff 333 Aug 13 17:03 .htaccess drwxr-xr-x 11 User staff 374 Aug 13 16:56 .openshift -rw-r--r-- 1 User staff 2130 Aug 13 16:56 README -rw-r--r-- 1 User staff 2190 Aug 13 16:56 README.md drwxr-xr-x 3 User staff 102 Aug 13 16:56 libs drwxr-xr-x 3 User staff 102 Aug 13 16:56 misc drwxr-xr-x 3 User staff 102 Aug 13 16:56 php