After changing one of the URLs in my website settings, a 404 error

  • Unknown's avatar

    After changing one of the URLs in my website settings. Immediately I was kicked out, met with a 404 error, as well as not able to log back into the admin settings.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hello Jordan,

    I’m sorry you got locked out. In WordPress, these two URLS settings must be correct and consistent. If either is wrong (wrong domain, missing www, wrong protocol http/https, typo), WordPress will redirect incorrectly → locking you out.

    To fix this you need to access your wp-config.php file and add these lines above: /* That’s all, stop editing! */

    define(‘WP_HOME’, ‘https://yourdomain.com’);
    define(‘WP_SITEURL’, ‘https://yourdomain.com’);

    Save the file and refresh you site.

  • Unknown's avatar

    Thank you for replying, can you please provide a step-by-step guide that I could go by?

Log in or create an account to reply