• Hi

    I was asked to take an OLD site from the users host and build a new WordPress site on another host.

    1. I built the site in WordPress on the NEW server/host at this URL: https://www.israel-host.com/health
    2. I changed the DNS of the domain (www.healingtrauma.co.il) to the NEW server
    3. In Cpanel on the NEW server, I pointed the domain to the directory where I built the new site
    4. Now, when I go to: https://www.healingtrauma.co.il – I get to the homepage correctly of the NEW site I built
    5. The problem is – when I go to an inside page, the URL shows up: https://israel-host.com/health/about-me/

    What am I missing here????

    Thank you

Viewing 1 replies (of 1 total)
  • Hey zlando

    Sometimes when moving hosts, especially with different host-names, you need to make sure you’ve run a find and replace in your database. There’s usually two things you need to change right away. home and site_url which you can find in the wp_options table.

    You would also need to make sure that your post_meta has been updated from the old URL to the new URL.

    Here’s the SQL query you can use if you’re using phpMyAdmin for instance:

    UPDATE wp_posts SET post_content = REPLACE(post_content, ' https://israel-host.com/', ' https://www.healingtrauma.co.il');

    Once you’ve done that, you need to make sure that your re-save your permalink structure in Settings > Permalinks. Your broken links should rectify after that!

Viewing 1 replies (of 1 total)
  • The topic ‘Pointing domain problem’ is closed to new replies.