Domain settings not matching wordpress now I'm locked out!

### Username (e.g. epiz_XXX) or Website URL

(please specify the website or account you are asking about)

Error Message

(please share the FULL error message you see)

Other Information

My wordpress domain settings were accidentally changed from to
something else.

and now I am completely locked out of my site, dashboard etc.
Can I change my domain name in InfinityFree to match it back up? Or is there a workaround to restore the previous wordpress settings??

You can do this


Thanks so much for the quick reply.
I made the edits to the function.php file within the theme, but now I get this error:

This site can’t provide a secure connection

site sent an invalid response.

Should the change be instantaneous, or does it take a few hours to register the changes?

Please show the edits you made to function.php

update_option( 'siteurl', '' );
update_option( 'home', '' );

These two lines were added to the very end of the file.

My bad, I used the example settings - updated settings here

update_option( 'siteurl', '' );
update_option( 'home', '' );

And I’m back in my dashboard. OMG you’re a lifesaver. Thank you.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.