WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Problem Moving WordPress to new server/domain - Pages give 404 Error (4 posts)

  1. SharmaYelverton
    Member
    Posted 1 year ago #

    Hi, I’m moving a clients WordPress website from a different web host and domain (set up by their previous web designer) to a new domain and host. I don't know if this has any baring on the problem but the previous web designer refused to give access to their webspace and phpMyAdmin but they had installed the BackUpWordPress plugin (by Human Made) so that I could get the database. The new host is 1&1.

    I transfered the site files via FTP. I set up a new SQL database then I deleted the wp-config.php file and loaded the new domain in the browser so WordPress would prompt me to instal. I ran the instal then went back to phpMyAdmin and imported the database.

    Finally I uploaded the 'search and replace' script from interconnectit.com and ran it using the domain names excluding the http://www. (eg search for essential-oil-products.com and replace with zulekha-therapies.com)

    Now I can log into the wordpress backend not problem and the home page of the site also loads fine.

    The problem however is that every other page or post, including any new ones I create, loads a 404 error despite having the correct url. I have have checked the page url and the navigation link url, they both match and are correct.

    The website url is http://www.zulekha-therapies.com/ if you wish to look first hand. The old version of the site is also still live and is at http://www.essential-oil-products.com

    I'm completely stumped. I don't have much experience with this side of things.

    I checked .htaccess and wp-config.php files for any old urls but they have none, new or old.

    Appreciate any advice.

    Thanks,

    Sharma

  2. David Choi
    Member
    Posted 1 year ago #

    By my experience, usually going to Settings > Permalinks and clicking the save button again solves the problem.

  3. SharmaYelverton
    Member
    Posted 1 year ago #

    OH my god, that worked! That's bizarre, I would never have considered doing that! Any idea what was going on and why that solves the problem?

    Thank you!

  4. David Choi
    Member
    Posted 1 year ago #

    I didn't really have time to dig more into the WP code, but looks like it recreates the .htaccess file and also updates in the "options" database table for the permalink value (just guessing), then it works.

    Glad it solved the problem, have a nice day!

Topic Closed

This topic has been closed to new replies.

About this Topic