Forums

[resolved] Login redirects to another blog (3 posts)

  1. jimcoe
    Member
    Posted 2 years ago #

    I have a blog on one old shared hosting service. This service has made a mess of migrating their databases to a new database server system and broken many paths in my blog. So, I decided to copy the blog to a new shared hosting service instead of fixing it (because of other issue with the hosting service).

    After setting up the new blog and exporting my MySQL database from the old and importing to the new (via phpMyAdmin) the blog is now viewable on the new host - but when I try to login via "/wp-admin" the browser address shows I'm being redirected to the old blog.

    A complication is that the domain name on the new shared hosting service is the same as the old domain, except it has hyphens between the words.

    Help!

    Thanks All :o)

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    Consider using phpMyAdmin to make sure your wp_options table has the correct values in siteurl and home.

    siteurl is your WordPress address (URL) and home is your Blog Address (URL).

    And, some other info:
    http://www.tamba2.org.uk/wordpress/site-url/

    After you can login, install http://wordpress.org/extend/plugins/search-and-replace/ and replace old domain with new.

    Then update your permalinks Settings->Permalinks.

  3. jimcoe
    Member
    Posted 2 years ago #

    Many thanks MichaelH.

    My new host's support staff quickly did the table edits for me, but great to know how to do so for myself in future. Will check out the rest of your advice now...

Topic Closed

This topic has been closed to new replies.

About this Topic