• Resolved SharmaYelverton

    (@sharmayelverton)


    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 https://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 https://www.zulekha-therapies.com/ if you wish to look first hand. The old version of the site is also still live and is at https://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

Viewing 3 replies - 1 through 3 (of 3 total)
  • By my experience, usually going to Settings > Permalinks and clicking the save button again solves the problem.

    Thread Starter SharmaYelverton

    (@sharmayelverton)

    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!

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem Moving WordPress to new server/domain – Pages give 404 Error’ is closed to new replies.