• Hi people,

    So I am in a bit of a dilemma here and was wondering if anyone can shed some light on my problem.

    I’ve been running a WordPress site for a while now, and as I used that web host more and more, I noticed some shortcomings so I wanted to switch.

    So I signed up for a new web host, and started developing a new install of WordPress there, accessing it via I.P. address.

    Now that version two of the site is ready, I was wondering how I would go about “switching over”? I know it’s not as simple as changing the DNS to the new web space, but all permalinks/links have to be manually changed as well, since the pages/posts will have an url like https://111.111.111.111/about-us.

    Can anyone help me out with some insights?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Why does it have the IP address in the URL?

    if you change the ns it should point to the new hosting. matching site URL not sure what you are trying to match (you have given new URL how the old one looks like?) but you can do 301 redirect

    If you have access to phpmyadmin there are two MySQL queries that will take care of the other site pretty quickly 9 times out of 10.

    To update the main site URL:

    update db_name.wp_options set option_value = "https://newdomainname.com" Where option_value = "https://olddomainname.com"

    To update any remaining assets:

    UPDATE db_name.wp_posts SET post_content = replace(post_content, 'https://olddomainname.com', 'https://newdomainname.com');

    olddomainname and newdomainname are placeholders. In your case “https://olddomainname.com” will look like “https://111.111.111.111”

    The reason this method tends to work better for me is that it tends to update all permalinks and image links as well as the core site.

    also db_name is a placeholder for the name of your current database that is running wordpress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to "Semi-Migrate" via Changing DNS’ is closed to new replies.