SHARE
TWEET

Cara Lengkap dan Ampuh Ganti Domain WP Web

pustakakoran Aug 6th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1. tambahkan ini di config:
  2. define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']);
  3. define('WP_SITEURL', WP_HOME . '/');
  4.  
  5. 2. run di phpmyadmin:
  6. UPDATE wp_posts SET guid = replace(guid, 'oldurl','newUrl');
  7. UPDATE wp_posts SET post_content = replace(post_content, 'oldurl', 'newUrl');
  8. UPDATE wp_links SET link_url = replace(link_url, 'oldurl', 'newUrl');
  9. UPDATE wp_links SET link_image = replace(link_image, 'oldurl', 'newUrl');
  10. UPDATE wp_postmeta SET meta_value = replace(meta_value, 'oldurl', 'newUrl');
  11. UPDATE wp_usermeta SET meta_value = replace(meta_value, 'oldurl', 'newUrl');
  12. UPDATE wp_options SET option_value = replace(option_value, 'oldurl', 'newUrl') WHERE option_name = 'home' OR option_name = 'siteurl';
  13.  
  14. 3. masuk ke menus ganti link di home
  15.  
  16. 4. masuk seting permalink, klik default baru ke link yang dipakai.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top