• Had wordpress installed and running ok, could log in and out ok. Noticed the site url was defaulting to for example https://mysite.com and so i went to settings/general and for wordpress address i changed the entry there to https://www.mysite.com

    The login screen came up and now my login and password doesn’t work.

    Help!

Viewing 1 replies (of 1 total)
  • Hi

    You can edit wp-config.php since you cannot access the site’s backend.

    You will need to add the following to wp-config.php :

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

    Replace example.com with your url.

    Additional information can be found here

    All the best!

Viewing 1 replies (of 1 total)
  • The topic ‘Added “www” to wordpress url, now cannot log in’ is closed to new replies.