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

  • Resolved dadthing

    (@dadthing)


    Hi,

    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 dadthing.com, ran the upgrade script on the local installation with no errors.

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

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

    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?

    Thanks,
    Jared

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');
    Thread Starter dadthing

    (@dadthing)

    Thanks everyone. It is working now!

    Thanks again,

    Jared

    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.