Archived topic
Site URLs changed and now I am locked out of site
4 replies · Started by BeeLady11 on September 10, 2015
Hi
I am in a bit of a panic and would really appreciate any help you can offer.
I tried changing my site url's and now I just get errors and cannot log back into my control panel to reset them.
I have tried following the advice at http://codex.wordpress.org/Changing_The_Site_URL and entered the code into functions.php but I just get an error saying it doesn't recognise 'update_option'
Any help gratefully received!
thanks
Hi Annie. We'll try to help you get going again.
I just get errors
Can you list the error message(s) you're getting?
and cannot log back into my control panel to reset them.
Does that mean you can access the WP login screen but you can't log in? Or does "control panel" mean something else?
Have you tried changing the URLs directly in the database using phpMyAdmin?
Open wp-config.php and set your URLs like this:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
That will at least get you back in.
Sorry for brief message - on mobile.
I followed your advice using phpMyAdmin and it's worked!
Thankyou so much - fantastic support.
A :-)
You're welcome. Glad you got it fixed.
