迁移后,Wordpress一直重定向到install-php [英] Wordpress keeps redirecting to install-php after migration

查看:306
本文介绍了迁移后,Wordpress一直重定向到install-php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的情况.我已按照Wordpress Codex页面上有关将站点移至另一台服务器的确切说明进行操作.这是我采取的步骤.

Here's my situation. I have followed the exact instructions on wordpress codex page about moving a site to another server. Here are the step's i have taken.

  1. 导出我的数据库副本
  2. 在新服务器中创建新数据库
  3. 导入我之前导出的数据库
  4. 通过ftp上传我的Wordpress文件的副本
  5. 使用此脚本来更改我所有的本地网址到新人的
  6. 根据新服务器对wp-config.php文件进行更改(我没有忘记表前缀.尽管其中包含一些大写字符)
  1. Export a copy of my database
  2. Make a new database in the new server
  3. Import the database I exported earlier
  4. Upload a copy of my Wordpress files via Ftp
  5. Use this script to change all my local url's to new one's
  6. Make changes to my wp-config.php file according to the new server(I did not forget table prefix. Although it has some uppercase characters in it )

然后,当我尝试在新位置打开网站时,它只是将我定向到wp-admin/install.php现在,为了使情况更清晰:目标文件夹(实时服务器上的文件夹)是public_html文件夹中的子目录,该文件夹中已经安装了另一个wordpress(我是说这是为了在需要的时候)

And then when I try to open my site on the new location it just directs me to wp-admin/install.php Now just to make the scenario clearer: The destination folder(on live server) is a sub directori in a public_html folder which already has another wordpress install inside it(I'm saying this just in case it should matter)

我的.htaccess看起来像这样

My .htaccess looks like this

    # BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /subDirectoryName/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /subDirectoryName/index.php [L]
</IfModule>

# END WordPress

我曾尝试通过phpMyadmin检查和修复表,但似乎一切正常,并且对问题没有影响.

I have tried checking and repairing my tables via phpMyadmin but everything seems to be ok there and has no effect on the problem.

我还尝试清空实时服务器上的数据库并进行安装.而且它的安装没有问题,并且一切正常,但是,我没有用过另一次全新安装.但是我认为这至少可以排除wp-config文件的任何麻烦.我正在使用Wordpress版本3.3.1

I also tried emptying the database on the live server and go through with the install. And it installs with no problems and everything works fine but, well I have no use for another clean install. But I think this at least rules out any trouble with wp-config file. I'm using Wordpress Version 3.3.1

所以我想我剩下的大问题是:为什么迁移后wordpress无法识别我的安装?

So I guess the big question I'm left with is: Why isn't wordpress recognizing my Install after migration?

任何帮助,不胜感激!

推荐答案

好了,我终于解决了这个问题.令人惊讶,令人惊讶这是我的表前缀中异常大写的字母.我在wp-config文件wp_C5n中有这种方式,但是由于某些原因,大多数表都带有前缀wp_c5n.但不是所有的.因此,id所做的是我将wp_config文件中的表前缀更改为所有小写,然后通过phpMyadmin手动检查了所有表,以查看是否还有大写表.那里大约有3个.它们位于usermeta表和options表中.现在终于一切正常.在Wordpress Codex中进行了快速搜索,但没有发现任何提及不使用大写字符的信息.

Well finally I have solved the problem. And surprise, surprise It was the freaking UPPERCASE letter in my table prefix. I had it this way in my wp-config file wp_C5n but for some reason most of the tables got a prefix wp_c5n. But not all. So what id did was I changed my table prefix in wp_config file to all lowercase and then went through all the tables by hand via phpMyadmin to see If there's any uppercase tables left. There where about 3. They were inside usermeta table and inside options table. Now finally everything is working. Did a quick search through wordpress codex but did not find anything mentioning not to use uppercase characters.

这篇关于迁移后,Wordpress一直重定向到install-php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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