How to move Wordpress from one URL to another URL

Changing URLs on Wordpress is unlike other scripts in which you would have a configuration file that you would need to edit.  In Wordpress, everything configuration related is located inside the database.

There's 3 main things that need to change;

UPDATE wp_options SET option_value = replace(option_value, '', '') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, '','');
UPDATE wp_posts SET post_content = replace(post_content, '', '');

All you would need to do is change the OLD-DOMAIN section to the NEW-DOMAIN and then paste that into the SQL section inside phpmyadmin.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

PHP-based Form Mail (Feedback) Script


Perl-based Form Mail (Feedback) Script

 Perl-based Form Mail (Feedback) ScriptUsing a Perl script you may accept feedback from your...

Feedback Form Code / Instructions

Feedback Form Code / InstructionsThe source code for the two files (feedback.php and feedout.php)...

PHP sendmail Settings

Using phpMailer to Send Mail through PHP Download the PHPMailer script First, download...

301 Redirect from non-www to ww -- Without Looping!

o - you want to improve your search engine rankings, and SEO gurus told you that Google might be...