WordPress.org

Ready to get started?Download WordPress

Forums

Explanation Request: update_option('siteurl... (3 posts)

  1. AlanthonyC
    Member
    Posted 5 years ago #

    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?

    thanks

  2. mrmist
    Forum Janitor
    Posted 5 years ago #

    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.

  3. AlanthonyC
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.