Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey,

    Please do following steps:
    1. Add these lines to the functions.php file of your theme:
    update_option(‘siteurl’,’https://www.new-site-address.com’);
    update_option(‘home’,’https://www.new-site-address.com’);
    2. Then simply load your site from its new location – it should work just fine.

    Note that after you run your site once and you make sure it works you should delete those lines from your functions.php file. The settings are already stored in your database and should not be modified each time your site is loaded.

    Best regards,
    Eugene

    I have both domains pointed to the nameservers of the web host.

    That does not necessary mean both are c-Panel-assigned to where you want them to land. So, you might first have to do some sorting there and then possibly add some htaccess to redirect the previous to the new.

    Thread Starter youthman

    (@youthman)

    Eugene, that’s exactly what I needed! Thanks!

    Just curious, didn’t that just change the WordPress Address and Site Address in the General Settings of control panel? Could I have just changed it there and re-logged in using https://www.braveconference.cc control panel?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing Main URL’ is closed to new replies.