I got locked out of my website

Discussion in 'Site & Server Administration' started by Ujwal Shrestha, Aug 20, 2013.

  1. #1
    Guys in my wordpress website i accidently changed the blog url and site adress and now I can not login to my account and edit my website? WHat should I do? I have no idea of PHP mysql or Cpanel.
     
    Ujwal Shrestha, Aug 20, 2013 IP
  2. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #2
    RoseHosting, Aug 21, 2013 IP
  3. MyBB Hoster

    MyBB Hoster Active Member

    Messages:
    64
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #3
    To fix this you will need to edit your wp-config.php file via cPanel or ftp. Simply add this code:

    define('WP_HOME','http://yoursite.com');
    define('WP_SITEURL','http://yoursite.com');
    PHP:
    Use this to access your site to change the url settings in the admin panel. When finished remove the code you added to the wp-config.php file and the problem should be fixed.

    I hope this helps if you did not figure it out yet.
     
    MyBB Hoster, Sep 7, 2013 IP