WordPress.org

Ready to get started?Download WordPress

Forums

Can't change site URL (5 posts)

  1. bolivares
    Member
    Posted 1 year ago #

    So I just changed my WordPress site over to a virtual private server and for some reason some things are still stuck in connection with the old servers IP address.

    When going to http://bolivares.com you can see that any link using the <?php echo home_url();?> line is being redirected to the old IP address as well as any attempt to login

    I have set the below into the wp-config.php

    define('WP_HOME','http://bolivares.com');
    define('WP_SITEURL','http://bolivares.com');

    and this in the theme's functions.php but it's still not fixing it

    update_option('siteurl','http://bolivares.com');
    update_option('home','http://bolivares.com');
  2. esmi
    Forum Moderator
    Posted 1 year ago #

    I have set the below into the wp-config.php
    [...]
    and this in the theme's functions.php but it's still not fixing it

    Do not use both. Chose one method of changing the url only.

  3. bolivares
    Member
    Posted 1 year ago #

    took it out of functions.php, still happening

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    you can see that any link using the <?php echo home_url();?> line is being redirected to the old IP address

    Such as...?

  5. bolivares
    Member
    Posted 1 year ago #

    Just realized I was uploading the wrong file haha, fixed that issue and now a bunch of weird things are happening

Topic Closed

This topic has been closed to new replies.

About this Topic