复制WordPress网站现在";空白”;


Copied WordPress site now "blank"?

我刚刚将一个网站复制到一个新的开发子域中进行了一些更改。复印得很好。我使用了rsync,所有文件都已就位。我丢弃了数据库内容并将其加载。

此外,我修改了wp-config.php,使其具有:

define('WP_HOME','http://www.dev.newdomain.tld');
define('WP_SITEURL','http://www.dev.newdomain.tld');
// Just trying to catch any error info:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);
define('SCRIPT_DEBUG', true);

帖子、插件、用户等都在wp管理界面上显示得很好,但NO内容显示在前端。

如果我从wp管理员那里修改一篇文章,它编辑得很好,但当我试图查看一篇文章时,我会在浏览器中看到以下内容:

Not Found
The requested URL /path-to-article/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

以及我的apacheerror.log中的以下内容:

[Tue Feb 05 05:50:07 2013] [error] [client xxx.xxx.xxx.xxx] File does not exist: /home/username/dev.domain.tld/path-to-post
[Tue Feb 05 05:50:07 2013] [error] [client xxx.xxx.xxx.xxx] File does not exist: /home/username/dev.domain.tld/missing.html

这一部分让我相信,也许这是apache的.htaccess的问题,但它看起来还可以:

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

是的,我已经禁用了所有的插件,看看是否有什么事情发生。此外,将主题更改为默认的"Twenty-Twelve"也无济于事。

此外,当查看生成的页面源时,html中根本没有内容。

我所看到的只是web浏览器访问日志中对根/站点资源的单一访问,没有附带其他资源(文件、图像等)

当我似乎陷入僵局,日志中没有任何错误时,这里会发生什么?

检查数据库。Wordpress将许多URL存储为绝对URL,所以这就是您可能会遇到问题的原因。