• nicki12117

    (@nicki12117)


    I recently had to change my website address and my hosting company transferred my old wordpress site into the new one for me behind the scenes as I am not that tech savvy and had done quite a bit of work to it.

    The old site njdconsulting has been left as a front page with links to the new one njdpeopleconsulting as there is still some documentation out there with the old address on and I don’t want people to get a 404 or blank site.

    When my hosting company moved my site they gave me the same login username as for the old site. It had been working fine but today I have tried to log into the new wordpress account to update my website and it has been automatically changing to the old site login page.

    E.g. i type njdpeopleconsulting.co.uk/wp-admin into the address bar and it automatically chanegs it to: https://njdconsulting.co.uk/wp-login.php?redirect_to=http%3A%2F%2Fwww.njdpeopleconsulting.co.uk%2Fwp-admin%2F&reauth=1 so when I log in I am in the old web site. I had started making some changes until I realised where I was.

    Unfortunately I can’t take the old site down completely as I there are still some business cards etc with the old address hanging around and I don’t want to lose people completely if they hit an error page.

    I have emptied my cache and retried but it is still doing the same and can’t do any of the other things suggested like deactivate plugins because I can’t get into my site.

    Any help would be appreciated.

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

    (@macmanx)

    Follow this guide to correct the siteurl and home values directly in the database: https://codex.www.ads-software.com/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database

    You’ll find phpMyAdmin in your hosting account’s control panel.

    Thread Starter nicki12117

    (@nicki12117)

    Thansk James, My hosting company have said I should make these changes in wp-config.php but I can’t seem to locate that file?
    All the other posts/support i read say it is in the wordpress directory, or through cPanel – file manager. However I can’t find any of these places.

    I don’t want to have to start paying people to help with these things but I may have to as I feel it is getting a little too technical for me!

    Thread Starter nicki12117

    (@nicki12117)

    The new site is also now taking people to the old web address. e.g. when they are on my correct domain and click the blog page it takes them to the old page.
    Its getting itself very confused. I’m tempted to just take the old one down.

    Moderator James Huff

    (@macmanx)

    No, you should make the change in the database following the guide above as mentioned last week.

    Making the change in wp-config.php forces the settings, so you’ll never be able to control them again normally without continuing to edit the file. Making the change in the database sets the setting itself, so you can later control it normally in your Dashboard.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Migrated site re-directing to old address when trying to log in to admin panel’ is closed to new replies.