Support » Fixing WordPress » Can't change site URL

  • 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');

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    (@esmi)

    Forum Moderator

    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.

    took it out of functions.php, still happening

    esmi

    (@esmi)

    Forum Moderator

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

    Such as…?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't change site URL’ is closed to new replies.