• Resolved moe321

    (@moe321)


    This is a luxury problem, but would be nice to know how to do it:

    I am transferring my blog to another host, and will keep the same domain. Before I change name servers, I would like to transfer the blog to the new host – so I need to be able to look at it with a browser to make sure everything works as it should.

    My problem is that when I go to the “ugly url” provided to me by my new host, it redirects me to the domain (which is still pointing to the old server). Is there a way to prevent this redirect?

    I have tried two things so far:

    1. I changed the table called “siteurl” to the new url but it still redirects to the domain name
    2. I looked at the .htaccess file, but it is blank.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • https://codex.www.ads-software.com/Changing_The_Site_URL
    There are 2 url values you need to change

    Thread Starter moe321

    (@moe321)

    Thanks. I am actually in a similar situation now, only reverse! I need to access the WP Admin on my old site, but when I try to go there (using the IP address) I am forwarded to my new site (the WP installation on my new host).

    Can someone tell me, specifically and in simple terms, what I need to do? I read the “Changing the site URL” page, but am a little confused by all the different options. (And don’t want to do anything that could create trouble.)

    Thread Starter moe321

    (@moe321)

    OK, it worked! I followed the instructions under “Changing the URL directly in the database”.

    (Went to phpMyAdmin in my cPanel, then changed the URL in two tables: siteurl and home.)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to prevent redirects to domain name’ is closed to new replies.