Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Önce wp_options tablosundaki eski urlleri yeni url ile değiştiriyoruz.
- UPDATE wp_options SET option_value = replace(option_value, 'http://www.eskisite.com', 'http://www.yenisite.com') WHERE option_name = 'home' OR option_name = 'siteurl';
- Şimdi siteye giriş yapabiliriz yeni alan adı üzerinden ancak konulara giriş yapamayız. Konulara giriş yapabilmek için aşağıdaki sorguyu çalıştırıyoruz.
- UPDATE wp_posts SET guid = replace(guid, 'http://www.eskisite.com','http://www.yenisite.com');
- Son olarak resimlerde de sorun çıkmaması ve sağlıklı olarak görünmesi için aşağıdaki sorguyu çalıştırıyoruz.
- UPDATE wp_posts SET post_content = replace(post_content, 'http://www.eskisite.com', 'http://www.yenisite.com');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement