Hi there.
I changed functions.php to change the site’s url by adding after the initial “<?php” line:
update_option( ‘siteurl’, ‘http://mysite.com’ );
update_option( ‘home’, ‘http://mysite.com’ );
But after that I wasn’t able to reach my site. I erased the lines I added and uploaded functions.php again but it didn’t work.
Also, can you tell me how to change my site’s url?
Can you help me? Thanks in advance.
Hey esemisanx,
Can you give us ftp access also?
Best regards,
Nikko
Sure. Here it goes in private content.
Thanks a lot.
Hello.
So are you able to help me? Please let me know.
Best regards
-Enrique.
Hi Enrique,
Sorry for late response and missing the thread, I added the code in functions.php (code in Private Content), and it works fine. Just to clarify, do you want to change your site’s url from http://example.com/wp to http://example.com ?
Best regards,
Nikko
Never mind, Nikko.
I figured it out. I went to PHPmyAdmin and changed the urls there.
Thanks anyway.
Best regards,
-Enrique.
Hi,
Great, glad you got it working and thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
Hi.
You can close it.
Best,
-Enrique.