• 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 https://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','https://bolivares.com');
    define('WP_SITEURL','https://bolivares.com');

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

    update_option('siteurl','https://bolivares.com');
    update_option('home','https://bolivares.com');

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter Corey

    (@bolivares)

    took it out of functions.php, still happening

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

    Such as…?

    Thread Starter Corey

    (@bolivares)

    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.