Support » Fixing WordPress » Explanation Request: update_option(‘siteurl…

  • Hi there,

    I was messing around with my site URIs and stuff (looking at moving the site folder to a different location) when I temporarily hosed it by switching the “WordPress Address URL” and “WordPress Blog URL” to a different directory.

    After that, I had some trouble signing into the admin account – everything was being redirected to the new directory. I tried renaming the old directory to the new one, but that didn’t work either.

    I was able to fix it by putting in the “update option” stuff in my theme functions.php.

    Can someone explain to me what I did to break it and what I did to fix it?


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


    Forum Janitor

    The site URL is generally not meant to be changed. A possible exception might be moving your installation to another directory or domain.

    If you change the site URL to a URL that is not correct, you will experience odd results.

    Thanks. I was actually hoping someone could explain (or point me to an explanation) of the details behind it just so I could have a better understanding of the structure behind how everything works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Explanation Request: update_option(‘siteurl…’ is closed to new replies.