Advertisement
serhatyucell

Wordpress domain ayarları

Feb 21st, 2015
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.74 KB | None | 0 0
  1. Önce wp_options tablosundaki eski urlleri yeni url ile değiştiriyoruz.
  2.  
  3. 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';
  4.  
  5. Ş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.
  6.  
  7. UPDATE wp_posts SET guid = replace(guid, 'http://www.eskisite.com','http://www.yenisite.com');
  8.  
  9. Son olarak resimlerde de sorun çıkmaması ve sağlıklı olarak görünmesi için aşağıdaki sorguyu çalıştırıyoruz.
  10.  
  11. 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