>
tips dan trik, tutorial wordpress

Merubah domain wordpress dengan script php

ada kemungkinan kita akan merubah domain website kita  atau kita sudah terlanjur membeli domain dan kurang pas dengan yang kita inginkan.
ketika kita mencoba merubah domain website kita melalui cpanel hosting. dan ketika domain berubah ternyata ketika mencoba mengakses website kita keluar pesan error pada website wordpress kita. mengapa error ??timbul pertanyaan penuh di kepala sambik garuk2 bingung hehehe..

pada website wordpress yang kita gunakan  tersimpan permalink dimana wordpress menyimpan URL  domain dalam database untuk pembuatan stuktur URl termasuk pada setting URL friendly yang biasanya menggunakan htaccess  sehingga ketika domain berubah data yang tersimpan di database tidak sama  makan menimbulkan error pada wordpress kita.

Solusinya:

1- anda bisa merubah data url  wordpress manual melalui phpmyadmin kemudian di table wp_options dan mengedit 2 record yaitu siteurl dan home

2- membuat satu file misalnya reset.php  lalu simpan di folder publick_html

kemudian isi dengan kode script berikut ini.

<?php

/**
* @author info.rajacolek.Com
* @copyright 2012
*/
include “wp-config.php”;
$conn = mysql_connect(DB_HOST,DB_USER,DB_PASSWORD);
mysql_select_db(DB_NAME,$conn);

$rs = mysql_query(“UPDATE wp_options set option_value=’http://&#8221;.$_SERVER[‘HTTP_HOST’].”‘ where option_name=’siteurl’ or option_name=’home'”);
if($rs){
echo ‘done’;
}
?>

Isi data data di atas sesuai dengan database anda seperti:

  • DB_ host
  • DB_user
  • DB_password

Selanjutnya akses file tersebut, Gocha! coba cek website wordpress anda harusnya sudah tidak error lagi

sekian dan selamat mencoba semoga tutorial singkat di atas bisa bermamfaat buat kita semua.

baca juga tutorial cara menghapus massal komentar spam di wordpress dengan script php . copas saja link dibawah ini ke browser

http://info.rajacolek.com/tutorial-cara-menghapus-all-koment-spam-wordpress/

About rajacolek blumbungan

tentang saya lihat aja di menu about yaa hehheehe

Discussion

15 thoughts on “Merubah domain wordpress dengan script php

  1. tes ting hehehhe

    Posted by princesfarah | November 24, 2012, 6:49 pm
  2. Gitu ya ? Boleh juga tuh…

    Posted by Puskesmas Sungai Ayak | January 5, 2013, 3:11 pm
  3. wah boleh di coba ni! thamk ifonya bro………….

    Posted by rizkysaja | March 17, 2013, 10:46 pm
  4. The good factor is:&bull You can get your ridd oof youur junk car free,
    get rewarded economically and lead positively to a cleaner and safer setting.
    A truck cap is something that can help tuck owners to protect their goods from the vvarious elements oof nature.

    Nevertheless, many Omaha roofing companies are concerned with cost effficiency in desigbning roofing systems for their clients.

    Posted by info omaha | July 2, 2014, 12:33 am
  5. Marvelous, what a blog it is! This weblog provides helpful facts to us, keep it up.

    Posted by offers | August 3, 2014, 7:57 pm
  6. I couldn’t refrain from commenting. Well written!

    Posted by Pakar SEO | September 14, 2014, 7:53 am
  7. I know this if off topic but I’m looking into starting my own blog and was wondering what all is needed to get setup?

    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very internet savvy so I’m not 100% sure.
    Any suggestions or advice would be greatly appreciated.
    Thanks

    Posted by ozpromocode.wordpress.com | September 15, 2014, 5:55 pm
  8. It’s appropriate time to make a few plans for the future and it’s time to be happy.

    I have learn this put up and if I may I want to recommend you some attention-grabbing
    issues or suggestions. Maybe you can write subsequent
    articles regarding this article. I want to learn more issues about it!

    Posted by rovine tv colegio maya guatemala | September 16, 2014, 4:56 pm
  9. Nice response in return of this matter with solid arguments and explaining everything on the topic of
    that.

    Posted by Grosir Celana Dalam Sorex | December 22, 2014, 4:17 am

Trackbacks/Pingbacks

  1. Pingback: plugin jetpack wordpress yang super canggih « obat herbal madura - November 24, 2012

berikan komentar pada artikel di atas.

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

TRANSLATE THIS BLOG

INGGRIS| KOREA| JERMAN| ARAB| SPANYOL| INDIA| JEPANG

cara pasang translate seperti ini klik DISINI

rajacolek

%d bloggers like this: