1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Problem in transfer wordpress from one domain to another.Here is solutions

Discussion in 'PHP' started by ajmair, Jan 21, 2014.

  1. #1
    HI
    this is Ajmai.
    i see many people who have problem in transfer wordpress blog one domain to another domain.
    Here is very simple guide in few steps.
    1)Get Backup your Database through phpmyadmin or wordpress plugin like
    1. VaultPress

    2. BackWPup

    3. Backup

    and you can use others.

    Now get your folder in zip WP-CONTENT
    .
    Now move on next domain hosting server
    Make a database and user and give all privileges to user while adding user in database.
    now import database which you have backup in old domain.
    then
    Copy and extract latest wordpress or version which you need and on main folders rename file wp-config-sample.php to wp-config.php
    Then open this file and give your data DB name,username and password also host mostly hosting provides localhost but some hosting use own.
    now open PHPMYADMIN select your database and on right see SQL
    and run These query
    1)This is for changing main site links
    UPDATE wp_options SET option_value = replace(option_value, 'old-domain', 'new-domain') WHERE option_name = 'home' OR option_name = 'siteurl';
    2)This is for psots and pages links
    UPDATE wp_posts SET guid = replace(guid, 'old-domain','new-domain);
    3)And last for changing your content links
    UPDATE wp_posts SET post_content = replace(post_content, 'old-domain, 'new-domain');
    Now enjoy :) Thank you
     
    ajmair, Jan 21, 2014 IP