Support » Fixing WordPress » WordPress Address (URL) and Site Address (URL) Error

  • Please help me fix this error.
    Today I was updating two things in WordPress and now the website is ruined and I cannot log in to undo these two changes.
    I went into WordPress and clicked Settings> General Settings> and edit the two WordPress Address (URL) and Site Address (URL) and now my website is inaccessible. It was currently at http://www.lugobg.com/lostshin and I changed it to http://www.sacfoodsupplies.com and now it keeps redirecting it to this website and I cannot edit my website.
    Please help me get to the admin login page to undo this.

    Your help would be very much appreciated!
    Thank you and have a nice day!

    Here is a picture of what I did and want to do.

    http://i61.tinypic.com/zvbecx.png

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can change your WordPress Address (URL) and Site Address (URL) even when your site is broken by adding these lines to your wp-config.php

    define('WP_HOME','http://example.com');
    define('WP_SITEURL','http://example.com');

    Once you have fixed the entries in the database, it is recommended that you remove these lines from the file.

    Before you can make a change like this, you need to correctly set the domain name servers at the registrar, and in your domain hosting.

    Hi RossMitchell, I am a rookie at this and can you tell me step by step what you mean by this?

    How do I add this to “wp-config.php”? I do not know what this is and how it works.

    Sorry I am new to this whole thing. Thank you.

    The file “wp-config.php” is found in the top directory of your website, it contains many important settings.
    You can access it using either the file manager of your web hosting control login (in your case cPanel), OR using FTP file access.

    Login to your web hosting cPanel
    You will find an icon for “File Manager”, click it.
    This will show all your files, browse to your WordPress installation, probably it is “public_html/lostshin”, look for the file “wp-config.php”, click on it and select EDIT on the top row. Now copy and paste the settings as they were BEFORE you broke the site, add these lines to the end of the file, my guess is that the settings were:

    define(‘WP_HOME’,’http://lugobg.com/lostshin’);
    define(‘WP_SITEURL’,’http://lugobg.com/lostshin’);

    After adding these line, SAVE the changes.
    With the cPanel still open, test the website. Does it work ? If not make more changes, SAVE and test again.
    When it does work, then Login to the WordPress admin, does it still work ? If yes, then make the same changes in Dashboard > Settings > General, make the same changes there, save them. Now comment out the two lines you added into the wp-config.php file, save these changes. Test again.
    Close the file, logout of cPanel

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress Address (URL) and Site Address (URL) Error’ is closed to new replies.