Forums

Login Issue after pointing hosting from .net to .com (5 posts)

  1. jrstaatsiii
    Member
    Posted 1 year ago #

    We are hosting our WP site on GoDaddy. Since we already had a live site (apexmountainschool.COM), we built the WP site on apexmountainschool.NET. The .COM version of the site was pointed to another server.

    If you are familiar with GoDaddy, you'll know that you can fairly easily point a domain to the primary hosting account, so that is what we did once we completed the site on .NET -- we pointed the primary hosting to .COM

    The site (apexmountainschool.com) is now live and it works. However, when I attempt to login, the page is refreshed but does not advance to /wp-admin. Rather it resolves back to the same page only now resolves to the www. location. It does this without an error message, and without mentioning that the username or password is incorrect.

    I read this page: http://codex.wordpress.org/Login_Trouble

    and paid special attention to this:

    Changed your WordPress address URI and cannot login nor access the database (but still can access the login page) ?

    wp-login.php can be used to reset the address:

    //FIXME: do comment/remove these hack lines. (once the database is updated)
    update_option('siteurl', 'http://your.domain.name/the/path' );
    update_option('home', 'http://your.domain.name/the/path' );

    I think this will resolve our issue however I am not certain where to drop the code. I put it at the beginning after the opening php tag, but this returned an error.

    Can someone point me in the right direction as to how I can fix this?

    Thank you so much; I've been pulling my hair out all night.

    Rich

  2. aphill70
    Member
    Posted 1 year ago #

    The easiest place to drop code that needs to be executed would be the functions.php file in your template directory

    Once you have loaded a page you can then delete those lines.

    The functions.php file is automatically loaded on any wordpress page.

  3. jrstaatsiii
    Member
    Posted 1 year ago #

    thanks for the response, but doesn't it say to add that to wp-login.php?

  4. aphill70
    Member
    Posted 1 year ago #

    Just put it in the functions.php it executes on any wordpress page load

  5. jrstaatsiii
    Member
    Posted 1 year ago #

    took your advice and it worked like a charm, thanks for the help!

  6. aphill70
    Member
    Posted 1 year ago #

    No Worries Glad i could help

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.