Moving a wordpress website to another domain.

Discussion in 'WordPress' started by zeniusivanisher, Mar 16, 2010.

  1. #1
    Hello everybody. I currently have a website up and operating. I coded the entire thing myself using css / xhtml, etc.

    I'm about 85% done converting it to wordpress. I'm working on it on another domain i own, in a subdirectory (i want to keep it under wraps until i am ready to move it).


    So with my current website, let's call it XYZ.com... Is there any way I can "turn it off" through godaddy, until I am finished moving the wordpress version to XYZ.com?

    I've never moved a website like this before, and I know I am going to run into problems, so that is why I want to sort of have a splash page like "XYZ.com will be back soon!" while I am moving it.

    Can this be done?

    thanks!
     
    zeniusivanisher, Mar 16, 2010 IP
  2. mainhoondon

    mainhoondon Well-Known Member

    Messages:
    1,403
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #2
    Try dis.. put up a index.html page on your domain xyz.com saying it will be back up soon...

    or

    change nameservers so that it doesnt direct anywhere..

    or

    get a free host.. put up a landing page there and change nameserver.. when ur done.. just shift nameservers...

    I hope that helps
     
    mainhoondon, Mar 17, 2010 IP
  3. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #3
    pick a holiday like sunday, when traffic is low to do domain migration. It usually takes 24hrs for dns propagation to move from old domain to new one. During this migration, your users will not see any downtime and even you have problems, you can fix it without losing your nerve because of holiday.
     
    olddocks, Mar 17, 2010 IP
  4. zeniusivanisher

    zeniusivanisher Peon

    Messages:
    290
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for the replies, folks!

    Question: Is there any way to "disable" or "turn off" wordpress? so that only the admin can visit/view it?

    I remember yearsss back I did this with Joomla. Not sure if wordpress can do the same.
     
    zeniusivanisher, Mar 24, 2010 IP
  5. sakto

    sakto Active Member

    Messages:
    1,517
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    90
    #5
    sakto, Mar 24, 2010 IP
  6. martinglover

    martinglover Active Member

    Messages:
    240
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Change your homepage index.php to index.html and put on the holding page onto the html. Rename the index.php / remove from directory index in the hosting panel.

    PM if you are still stuck and I can assist.

    Martin.
     
    martinglover, Mar 24, 2010 IP
  7. zeniusivanisher

    zeniusivanisher Peon

    Messages:
    290
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thank you for showing me this! That's a pretty awesome plug-in. Going to check it out now!

    Okay, so more or less, I remove the "index.php" from wordpress in the main folder. Replace it with an "index.html" with a message saying like "coming soon!" until I am ready to put the index.php back in it?

    if I do that, will I be able to view the site as admin? I will need to be able to see a working version of it during the switch to make sure there are no bugs.
     
    zeniusivanisher, Mar 24, 2010 IP
  8. shivam0000

    shivam0000 Member

    Messages:
    178
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #8
    Moving WordPress to a New Server
    If you are moving WordPress from one server to another, begin by backing up your data. This includes backing up your WordPress database as well as all the core files, images, plugins, and other files on your site. See WordPress Backups and Backing Up Your Database for more details.

    Note: If you are changing to a new server but same domain, all you need to do is edit wp-config.php and upload everything as it is to your new server.
    If You Don't Care If Your Old Blog Works

    Download a copy of the main wordpress files from your OLD blog to your hard drive and edit wp-config.php to suit the new server.
    Go back to your OLD blog and go to Administration > Settings > General and change the url (both of them) to that of your new site.
    Again, download your database (but keep the old one just in case), upload this new database and the copy of the wordpress core files with the edited wp-config.php to your new server. Thats it!
    If You Want Your Old Blog To Still Work

    Caution: Make sure you have a backup of your old blog's WordPress database before proceeding!

    Part A - Activating Your New Blog

    Download your entire WordPress installation to your hard drive. Name the folder appropriately to indicate that this is your OLD blog's installation.
    Go back to your OLD blog and go to options and change the url (both of them) to that of your new site.
    Again, download your entire WordPress installation to your hard drive. Name the folder appropriately to indicate that this is your NEW blog's installation.
    Download your database once again (but keep the old one). Upload this database to your new server. It will be easiest if you use the same database name and you create a user with the same login credentials on your new server as on your old server.
    If you used a different database name and/or user (see previous step), edit wp-config.php in your NEW blog's installation folder appropriately.
    Upload the NEW blog's installation folder to your new site. Presto, your NEW blog should be working!
    Part B - Restoring Your Old Blog

    On the original server, delete your OLD blog's database (remember, you should have a copy on your local computer that you made at the very beginning).
    Upload your OLD blog's installation folder to your original server, overwriting the files that are currently there (you may also delete the installation folder on the server and simply re-upload the OLD blog's files).
    Upload your OLD blog's database from your local computer to the server. That should do it!

    Another procedure for making copies of posts, comments, pages, categories and custom field (post status, data, permalinks, ping status...) easy to follow:

    Install a new Wordpress blog
    Go on old blog Admin panel. Here, in Manage > Export select "all" in menu Restrict Author.
    Click on Download Export File
    In new blog go on Manage > Import, choose Wordpress item.
    In the page that will be shown, select the file just exported. Click on Upload file and Import
    It will appear a page. In Assign Authors, assign the author to users that already exist or create new ones.
    Click on Submit
    At the end, click on Have fun
    Note: using this method if there are some articles in new blog (like hello world, info page...), these will not be erased. Articles are only added. Using the former procedure the article in new blog will be deleted.
     
    shivam0000, Mar 31, 2010 IP