Changing site URL via functions.php
-
Hi,
I changed a sites URL in the General/Settings menu and now want to change it back. I’ve done so successfully using the wp-config.php file as described in the codex instructions here https://codex.www.ads-software.com/Changing_The_Site_URLHowever, it states this is not the best method. So I am trying to edit it via the functions.php file.
I have ftp access and am adding the code as described in the example but replacing with my domain.
<?php update_option('siteurl','https://www.eaofwny.com/livingbuffalo'); update_option('home','https://www.eaofwny.com/livingbuffalo'); Rest of my funtions.php code here ?>
Then I re-upload in the same ftp location. However, then I get this error displayed and no site.
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘&’ or T_VARIABLE in /home/content/62/10551762/html/livingbuffalo/wp-includes/functions.php on line 2
I think I am adding it in the correct location according to the codex instructions but perhaps the code is incorrect? Any help is appreciated thanks.
- The topic ‘Changing site URL via functions.php’ is closed to new replies.