Forums

[resolved] Which file is keeping General Settings (WP URL) (4 posts)

  1. olmorgan
    Member
    Posted 2 years ago #

    Hi,
    I bought new domain and when I changed WordPress address (URL) in General Settings (Dashboard) - I did a mistake in URL. Now I am not able to login to change it again because of wrong URL.

    In which file I can change this URL manually?

    Thanks.

  2. songdogtech
    Member
    Posted 2 years ago #

    The URL is stored in the database, not in a static file. Use these instructions to recover: Changing The Site URL « WordPress Codex.

  3. rakxzo
    Member
    Posted 2 years ago #

    like it was suggested, that's good to read. Specifically I think this will be the easiest way for you to fix this:

    Edit wp-config.php

    It should be possible to fix the site URL using a new feature -

    Add these two lines to your wp-config.php, where "example.com" is the NEW location of your site.

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

    That should be it. If it worked, stop reading this page now.

  4. olmorgan
    Member
    Posted 2 years ago #

    Great THANKS!

Topic Closed

This topic has been closed to new replies.

About this Topic