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, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');

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.

Was this answer helpful?

Related Articles

PHP-based Form Mail (Feedback) Script

Updatedhttps://www.domainindia.org/login/knowledgebase/116/PHP-sendmail-Settings.html

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...