Here’s a simple tip in case you are migrating a WordPress install from a development server to the production server.  If you don’t start with a fresh WP install and use the export/import tools, all your links, including links inside posts and pages, as well as paths used by WordPress to dynamically generate links will be still pointing to your production server.

Here’s some MYSQL commands you can run to help clean up the links:

UPDATE `wp_options` SET `option_value` = REPLACE(`option_value`,'','');
UPDATE `wp_posts` SET `post_content` = REPLACE(`post_content`,'','');
UPDATE `wp_posts` SET `guid` = REPLACE(`guid`,'','');
UPDATE `wp_postmeta` SET `meta_value` = REPLACE(`meta_value`,'','');

In this example, is the old URL from the development server and is the new website URL.

Of course, it’s always advisable to perform a backup any time you are running SQL commands manually 🙂