• Resolved 2ysub2ysur

    (@2ysub2ysur)


    I’m 99% sure I know the answer to this, but want to double check. Here is the scenario:

    We are switching hosts but keeping the same domain name (example.com). I successfully transferred the WordPress install (files + database) to the new host, where we’re operating under a temporary url.

    When I define WP_HOME and WP_SITEURL as the temporary URL in the wp-config.php file, the site works as intended—no broken links or anything. https://temporaryurl.com/my-post-here works. When I REMOVE those two lines, all internal links render a 404 error. https://temporaryurl.com/my-post-here doesn’t work.

    My question is, once I update example.com’s name servers to the new hosting account, will the 404 errors disappear automatically without me doing anything?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    They should disappear, but if they don’t, try re-saving your permalink structure at Settings/Permalinks in your admin panel. If WordPress cannot automatically edit the .htaccess file, it will provide manual instructions after saving.

    Thread Starter 2ysub2ysur

    (@2ysub2ysur)

    Thanks James, you were right! Website transferred over just fine without having to change any settings.

    Moderator James Huff

    (@macmanx)

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Going live after transferring WordPress’ is closed to new replies.