在哪里放置htaccess文件上openshift字preSS? [英] where to place htaccess file on openshift for wordpress?

查看:159
本文介绍了在哪里放置htaccess文件上openshift字preSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读并试图对堆栈溢出网络这些previous问题, 这些解决方案并没有解决我的困惑。因此,我再次问同样的问题。

I have read and tried these previous questions on Stack Overflow networks, these solutions doesn't solved my confusion. So I am asking the same question again.

这是我研究并没有解决我的问题,维基,问题 <一href="http://stackoverflow.com/questions/15784892/word$p$pss-htaccess-on-red-hat-openshift-pass">Question 1
<一href="http://stackoverflow.com/questions/25170281/where-to-put-word$p$pss-htaccess-on-openshift">Question 2
问题3
问题4
<一href="http://serverfault.com/questions/618655/where-to-put-word$p$pss-htaccess-on-openshift">Question 5
问题6

The questions that I've researched and doesn't solve my problem
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6





我只是想在OpenShift安装Word preSS通过自定义的方式比一键安装。我已经克隆了我的openshift混帐回购协议我的桌面上。提取,加推字press.tar.gz的回购和正确安装,这样我就可以登录到管理界面。

I'm just trying to install WordPress on OpenShift by custom way than the one click install. I've cloned my openshift git repo on my desktop. Extracted, added and pushed wordpress.tar.gz to the repo and installed correctly so that i could login to the admin site.

我的回购协议文件,这样看,

my repo files look this way,

deena@home:~/Desktop/wordpress$ ls -al
total 76
drwxrwxr-x  7 deena deena 4096 Feb  4 23:20 .
drwxr-xr-x 13 deena deena 4096 Feb  6 22:11 ..
drwxrwxr-x  8 deena deena 4096 Feb  4 23:20 .git
-rw-rw-r--  1 deena deena    9 Feb  4 16:41 .gitignore
drwxrwxr-x  2 deena deena 4096 Feb  4 16:41 libs
drwxrwxr-x  2 deena deena 4096 Feb  4 16:41 misc
drwxrwxr-x  9 deena deena 4096 Feb  4 16:41 .openshift
drwxrwxr-x  2 deena deena 4096 Feb  4 16:41 php
-rw-rw-r--  1 deena deena 2130 Feb  4 16:41 README

我想把的的.htaccess 的文件,这个回购协议,使字preSS能够在某些RW模式下使用。我在哪里可以将htaccess的?

I want to put the .htaccess file on this repo so that wordpress can use this in some RW mode. Where can I place the htaccess?

一个人说,对上市问题将它放在config目录,然后action_hook使用它的基本目录, 哪来的config目录?我应该做任何艰苦的工作,使其工作? (我不知道什么action_hook诚实) 有些问题得到了答复,以将其放置在基目录,这是所列出的目录,一些其他的表示将其放置在应用程序目录,在这里看到的字preSS目录。 我试图把在基地以及应用程序目录中没有任何反应比字preSS另一种是下一次我点我的浏览器到应用程序的URL重新安装。

one man said on the listed question to place it on the config directory then action_hook to use it on the base directory, where's the config directory? should I do any hard work to make it work? (I don't know whats action_hook honestly) some questions were answered to place it on the base dir, that's the listed dir, some other said to place it in the app directory, the wordpress directory seen here. I tried placing in the base as well as the app directory nothing happens other than the wordpress is reinstalled the next time I point my browser to the app URL.

所以使得这个问题再次明确,在外行人而言,在什么地方htaccess文件,使之成为字preSS访问?
谢谢。
和平

So making the question clear again, in layman terms, where to place the htaccess file to make it accessible for WordPress?
thanks.
peace

推荐答案

在.htaccess文件需要去在同一目录作为您的核心词preSS文件,无论您的wp-config.php文件中。但是,由于要部署通过git的这个网站,所有的话语preSS的文件包括,无论所做的.htaccess文件的Word preSS的变化,一旦你做另一个混帐推将恢复。如果你没有做任何更多的git推计划,那么一切都应该罚款。同样的事情会与任何插件或主题,他们将在一个混帐推,如果你使用Word preSS管理界面安装它们删除。你要么需要在本地使你改变你的git回购工作站(添加主题,添加插件,更新的.htaccess),或者你需要使用使用符号连接的快速启动存储在不同的位置在服务器上的信息。你也可以使用Word preSS OpenShift快速启动,其目的是只为与OpenShift使用,并帮助您了很多这些问题......

The .htaccess files needs to go in the same directory as your core WordPress files, wherever your wp-config.php file is. However, since you are deploying this site via git, with all of the WordPress files included, whatever changes that are made to the .htaccess file by WordPress will be reverted once you do another git push. If you don't plan on doing any more git pushes, then everything should be fine. The same thing goes with any of the plugins or themes, they will be removed on a git push if you install them using the WordPress admin interface. You will either need to make your changes locally in your git repo on your workstation (adding themes, adding plugins, updating .htaccess), or you will need to use a quickstart that uses symlinks to store that information on the server in a different location. You could also use the WordPress OpenShift quickstart which is designed just for use with OpenShift, and helps you with a lot of these issues....

这篇关于在哪里放置htaccess文件上openshift字preSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆