noganno
9/2/2013 - 5:58 PM

Как перенести сайт Wordpress на хостинг

Как перенести сайт Wordpress на хостинг

UPDATE wp_options SET option_value = replace(option_value, 'http://peak', 'http://stylemix') WHERE option_name = 'home' OR option_name = 'siteurl';
 
UPDATE wp_posts SET guid = replace(guid, 'http://peak','http://stylemix');
 
UPDATE wp_posts SET post_content = replace(post_content, 'http://peak', 'http://stylemix');

----------------------------------------

UPDATE wp_options SET option_value = replace(option_value, 'http://template.dev', 'http://wordpress19.rosait.ru') WHERE option_name = 'home' OR option_name = 'siteurl';
 
UPDATE wp_posts SET guid = replace(guid, 'http://template.dev','http://wordpress19.rosait.ru');
 
UPDATE wp_posts SET post_content = replace(post_content, 'http://template.dev', 'http://wordpress19.rosait.ru');


------------------------------------------

UPDATE wp_options SET option_value = replace(option_value, 'http://lp.dev', 'http://wordpress-lp.rosait.ru') WHERE option_name = 'home' OR option_name = 'siteurl';
 
UPDATE wp_posts SET guid = replace(guid, 'http://lp.dev','http://wordpress-lp.rosait.ru');
 
UPDATE wp_posts SET post_content = replace(post_content, 'http://lp.dev', 'http://wordpress-lp.rosait.ru');