Viewing 4 replies - 1 through 4 (of 4 total)
  • The issue is not within WordPress – it’s within your old site. You need to check what redirects/rewrites you have already set up.

    Thread Starter namaste364

    (@namaste364)

    Thanks, Esmi,

    I haven’t I’ve explained this very well. On the new host I’ve installed WP but I added it as an add on domain to my account so the directory is there but DNS still points to the original site. I want to work on the new site until it’s ready and then I’ll change the DNS to the new host and delete the old site. But when I try and login to the new test site it goes to the address of the old site and not the sub-domain I set up e.g. myDomain.com/newSite/wp-login
    Maybe I shouldn’t have added it as an add-on domain and just left it as a sub-domain. Am I making any sense?
    Thanks,
    Cliff

    In that case, you will need to use a temporary url until you’re ready to turn off the old site. Or install WordPress in a sub-folder of the domain (as opposed to a sub-domain) and then see Giving_WordPress_Its_Own_Directory when you’re ready to allow WP to take over the main domain.

    Thread Starter namaste364

    (@namaste364)

    Thanks, Esmi, for you quick and helpful replies!

    I just figured it out. As I can’t login to the new WP install, I added
    define(‘WP_HOME’,’http://example.com’);
    define(‘WP_SITEURL’,’http://example.com’);
    to wp-config.php and it now works. I found the answer here: http://codex.wordpress.org/Changing_The_Site_URL

    Many thanks again!

    Cliff

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘set up new WP site before change DNS from old site’ is closed to new replies.