Forums

[resolved] I've messed up. Can't login to admin page now. (6 posts)

  1. benwall
    Member
    Posted 2 years ago #

    Please help lol.

    I change the blog URL in General > Settings to http://myurl.com/test that than just http://myurl.com/

    Now I can't go to /wp-admin or /wp-login, it just loads the home page again.

    Is there anyway to login or manually change the url?

    Thanks

    Ben

    site is http://benwall.com/ by the way.

  2. Samuel B
    moderator
    Posted 2 years ago #

  3. benwall
    Member
    Posted 2 years ago #

    Thanks for replying samboll.

    Doesn't seem to work though, am I doing it right?

    <?php function woothemes_admin_head() { ?>
    update_option('siteurl','http://benwall.com/');
    update_option('home','http://benwall.com/');
    
    <style>
    
    h2 { margin-bottom: 20px; }
    .title { margin: 0px !important; background: #D4E9FA; padding: 10px; font-family: Georgia, serif; font-weight: normal !important; letter-spacing: 1px; font-size: 18px; }
    .container { background: #EAF3FA; padding: 10px; }
    .maintable { font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif; background: #EAF3FA; margin-bottom: 20px; padding: 10px 0px; }
  4. Wee Beastie
    Member
    Posted 2 years ago #

    Hey man,

    You need to have

    update_option('siteurl','http://benwall.com/');
    update_option('home','http://benwall.com/');

    Directly after the initial <?php tag in your functions.php file. Once you can access your admin page and fix the settings you changed, you should remove those lines from functions.php right away.

    This worked for me. Best of luck!

  5. benwall
    Member
    Posted 2 years ago #

    Thanks Beasite!

  6. Wee Beastie
    Member
    Posted 2 years ago #

    My pleasure, I just happened to have to do this the other day myself. Take care!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.