Moved wordpress redirects to old site (2 posts)

  1. rpophessagr
    Posted 7 years ago #

    I recently moved servers and would like to set up the new site before I switch over my domain name. Since I've installed wp on the new server my dedicated ip has been redirected to my domain name. I found that I should use phpmyadmin to fix this but I don't have it installed on my server and am a novice. Is there another way to fix this? is there a specific .php file i can edit on my server that will have the same result?
    many thanks!

  2. Austin Matzko
    Posted 7 years ago #

    Assuming you're using WordPress 2.2 or newer, you can specify your site's address in the wp-config.php file, like so:

    define('WP_HOME', 'http://www.example.com');
    define('WP_SITEURL', 'http://www.example.com/wordpress');

    WP_HOME is the path to your home page, and WP_SITEURL is the path to the directory WordPress is installed in.

Topic Closed

This topic has been closed to new replies.

About this Topic