• I entered a not valid website link into the “General Settings” in our wordpress backend at
    WordPress Address(URL) and
    Site Address(URL)

    afterwards, I can’t login to my wordpress backend, and the error page shown the link also the said wrong link. My website disappeared also.

    what should i do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Panos

    (@panoshostinger)

    Hi there! ??

    No need to panic, this can still be fixed!
    First of all, before doing any further changes, please make sure to generate a backup of your website. Once done, please proceed with the instructions below.

    You’ve access to your database, right? Please try accessing the database of your website, through phpmyadmin, and try locating the “wp_options” tabe.
    Open that and you should be able to find on the very top the “siteurl” and “home” with the incorrect URL that you used earlier.
    Replace those and recheck your website after clearing your browser’s cache or try it on incognito.

    Here’s how it should look like:
    https://prnt.sc/zeBhhM0oMlLh

    Let me know if that helps or if you need any further clarifications! ??

    • This reply was modified 2 years, 5 months ago by Panos.

    @jato You need to manually define your WordPress Address and Site Address. You have 2 options: Change them via phpMyAdmin or via wp-config.php

    To change them via phpMyAdmin.

    Access your Hosting Manager.

    On the Home page, click Databases or the [ v ] arrow symbol.
    Then, click the phpMyAdmin option.
    On phpMyAdmin interface, select the database to manage on the left side panel.
    Under Table column, select wp_options from the list.
    Under option_name column, look for siteurl, and click Edit on its far left corner.
    Enter your new URL in option_value.
    Click the Go button.
    Go back to option_name, look for home, and click Edit on its far left corner. Enter your new URL in option_value. Then, click Go

    When using the above method you have update the database and no further action will be required.

    Change URL via WP-config.php

    Here’s a step-by-step guide to change them via wp-config.php file.

    Access your Hosting Manager.
    On the Home page, click Files icon, or the [ v ] arrow symbol. Then, click Files Manager option.
    Select the public_html folder, then right click on wp-config.php file and click on Edit option.
    A code editor will display, just click Edit.
    Insert the following lines just before /* That’s all, stop editing! Happy publishing. */ (of course be sure to update the URL to your correct URL)

    define( 'WP_HOME', 'https://correcturl.com' );
    define( 'WP_SITEURL', 'https://correcturl.com' );

    You can also use FTP with this method by downloading wp-config.php, edit it and then upload it.

    When using the above method you have not updated the database and should be sure to update the addresses via General Settings.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘can’t login backend after entering a not valid website address’ is closed to new replies.