我剛將一個網站複製到一個新的開發子域進行一些更改。副本很好。我使用rsync,並且所有文件都已準備就緒。我傾銷了數據庫的內容並加載它們。複製WordPress網站現在「空白」?
此外,我修改了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.
而在我的Apache的錯誤以下。日誌:
[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
是的,我已禁用所有插件,看看是否有可能發生的事情。此外,將主題更改爲默認的「二十二」也無濟於事。
此外,當查看生成的頁面源代碼時,html中根本沒有內容。
我看到的是在訪問日誌的網頁瀏覽器根/站點資源的單一訪問沒有附帶其他資源(文件,圖片等)
什麼可怎麼回事,因爲我我似乎處於僵局之中,在日誌中沒有任何錯誤?
是否啓用了新服務器'mod_rewrite.c'? – Peon
是不是有幾個選項wp_options表,其中包括可能需要更改的網址?感謝您在config.php中設置了url,但在檢查/嘗試中仍然沒有任何傷害。 – ChelseaStats
@DainisAbols是的,它已啓用。 – ylluminate