• I’ve just created a privately hosted WordPress site, and I made the mistake of using the built-in URL change on the General Settings page which I now see many people have had troubles with over the years.

    I changed the URL from example.com/wp to example.com and immediately the entire site broke and I cannot access the admin area anymore.

    I did some digging and found this codex entry that seems to be the go-to solution. It hasn’t fixed anything yet. The only solution I’ve yet to try is the direct database manipulation, as I do not have phpmyAdmin and would like to avoid installing it if I can.

    Can anyone tell me how to fix the problem through the mySQL command line?

Viewing 2 replies - 1 through 2 (of 2 total)
  • did you try placing the following line in your wp-config.php?

    define('WP_HOME','https://example.com');
    define('WP_SITEURL','https://example.com');
    Thread Starter agi293tagi

    (@agi293tagi)

    Yes. It didn’t fix anything. However, when I changed those lines to refer back to example.com/wp, the site works again. So I’m back where I started, with the front page at that address.

    What I still don’t know how to do is set it so that example.com by itself points to the site, instead of an Apache default page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Site broken by URL change in settings panel, Codex instructions don't work’ is closed to new replies.