Oh no! You’ve accidentally changed your WordPress site URL in the admin settings! What are you going to do?
STEP ONE: Copy the code below and create a file called sitereset.php.
STEP TWO: Upload the file via FTP to your WordPress root folder.
STEP THREE: Open up your web browser and access the file. (http://www.yoursite.com/sitereset.php)
STEP FOUR: Enter the correct site url information into the text box.
STEP FIVE: Once the site url has been changed to the correct URL, DELETE sitereset.php completely from the server.
The following code is written in PHP 5 and utilizes the mysqli php extension.
Please use this file at your own risk!
THANK YOU SO MUCH! it helps me a lot 😉
Glad to hear it.
Thankyou for this!!
YOU ARE A FREAKING GENIUS!!
eeeeeeeeeerrrr .. where is the code guys???
Thanks
@Peter – Sorry about that…
Just wanted to say thanks. You saved me a whole afternoon of work.
Thanks a lot Allan for providing this trick! I applied it to my web site and it saved me from having to re-install WordPress.