Support » Installing WordPress » Redirect on Local Installation after Upgrade to 2.3

  • Resolved dadthing



    I am using XAMPP. I copied all of the WordPress 2.3 files to my local machine, imported my v2.2 DB from my existing blog at, ran the upgrade script on the local installation with no errors.

    However, now when I visit http://localhost/ I get redirected to…!?

    I changed the “site_url” entry in “wp_options” using phpMyAdmin to “http://localhost/”, but I still get redirected to “”…

    How do I keep this from happening so that I can test my blog setup on a local installation before rolling it out to the public?


Viewing 4 replies - 1 through 4 (of 4 total)
  • You need to change the site_url AND the “home” value, too.

    WordPress stores URL values in the database. You found one but there are actually two to change.

    Traditionally, we’d have to go spelunking through the Options table to find and change them (follow the link above).

    However, there’s an easier way introduce in a recent version of WP. We can now override these URL values directly in the wp-config.php file.

    define('WP_SITEURL', 'http://localhost/foo');
    define('WP_HOME', 'http://localhost/foo');

    Thanks everyone. It is working now!

    Thanks again,




    Thanks! Worked like a charm 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirect on Local Installation after Upgrade to 2.3’ is closed to new replies.