Forums

Moving WordPress from one domain to another (5 posts)

  1. azunoman
    Member
    Posted 2 years ago #

    Without doing the research I simply copied the root and db, and move them to my shared server.

    When nothing worked I then googled to see if anyone else experienced problems moving from one domain to another.

    I was unpleasantly surprised that WP embeds the root site's URL in the DB.

    Looking at all the different approached proposed by the WP community I suppose any one of them 'might' work but of concern to me is keeping the article and site links the same so the external links to our articles remain the same. I really don't want to update the httacess etc....

    I prefer the path I original picked as this is how I would move any site...and it seems to offer the best 'guess' chance of keeping the site links the same...

    Thanks in advance for your time in review of my question.

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    Use the search and replace plugin http://wordpress.org/extend/plugins/search-and-replace/ and replace old 'path' with 'new'

  3. azunoman
    Member
    Posted 2 years ago #

    MichaelH...thank you...I have seen this recommended but when I uploaded the root/db to a subdomain...when I say try to get into wp-admin, it doesn't execute the php code...it just displays it on the page...

    so I haven't been able to try that method...and it's a important detail that I should have stated...my bad

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    ...when I say try to get into wp-admin, it doesn't execute the php code...it just displays it on the page...

    May need to add:
    AddType application/x-httpd-php .php

    to your httpd.conf file.

  5. azunoman
    Member
    Posted 2 years ago #

    Summary...all the 'theories' on moving wp are pretty much just that theories. The only proper way, and one that works every time is uploading the DB and changing the embedded url's.

    We have completed the project with ZERO downtime.

Topic Closed

This topic has been closed to new replies.

About this Topic