Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to move my Wordpress blog to a different server. I dumped the database from the old server and imported it to the new server, and set up the new database details in wp-config.php. I can log in to the admin console online, and I can see all the posts, but if I go to the front page of the blog, the page is just blank. There are no errors in the apache logs. Does anyone have any idea what might be going on?

share|improve this question

4 Answers 4

I had this issue and confirmed the database was connecting properly but the homepage still showed up blank (empty <body></body> elements).

I resolved it by correcting my paths for WP_SITEURL, WP_CONTENT_DIR and WP_CONTENT_URL in wp-config.php.

  • WP_SITEURL should point directly to the WordPress root folder (one that includes 'wp-admin', 'wp-includes', etc)
  • WP_CONTENT_DIR should point directly to the 'wp-content' folder (one that includes 'plugins', 'themes', 'uploads', etc).

Note: These should be set toward the top of wp-config.php, above the lines for 'Absolute path to the WordPress directory' and 'Sets up WordPress vars and included files'.

Example for wp-config.php:

define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/wordpress');
define('WP_HOME',    'http://' . $_SERVER['SERVER_NAME']);
define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wordpress/wp-content');
define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/wordpress/wp-content');
share|improve this answer

In case you are using Permalinks, try re-setting them in the Settings > Permalinks page.

share|improve this answer

Go to http://yourdomain.com/wp-admin/options.php

Look for both the Site URL and Blog URL fields, and make sure the domain name is correct.

share|improve this answer

Toggle the theme to the default or another theme; rename the plugins folder, reload admin and name it back to plugins; and reset permalinks.

share|improve this answer
    
In my case, this was the solution. Many thanks. –  bortzmeyer Nov 21 '11 at 8:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.