Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Move Wordpress to New Server

define('WP_SITEURL', 'http://www.NEW-DOMAIN.com');<br>
define('WP_HOME', 'http://www.NEW-DOMAIN.com');


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-url.com', 'http://www.new-url.com');
Source by www.justwebdevelopment.com #
 
PREVIOUS NEXT
Tagged: #Move #Wordpress #New #Server
ADD COMMENT
Topic
Name
7+9 =