Fix an incorrect blog URL on your WordPress Blog

Recently I ran into a problem I have seen all too many times, someone had entered the wrong URL in the admin panel of a WordPress blog and they could no longer log into the application to fix the issue. Normally this would break wordpress so that you couldn’t use the admin panel and require a manual update to the database however I came up with the idea to use WordPress’ own functions to enable an update of the URL without using the admin panel.

So there was born the idea of WP-Recover. A simple script to do one very simple task, allow you to change the wordpress blog URL when it is not working or you have entered it incorrectly.

I have decided to use the new power of my Open Source Battlefield Wiki to document the script so you can access WP-Recover on the OSBattlefield site.

A brief how-to:

1. Upload recover.php to your root wordpress folder (the same folder that wp-config.php exists in).
2. Open your wp-config.php file however you would like and get the first five charaters of the AUTH_KEY string (excluding the ‘ )
3. In a web browser access http://www.yoursite.com/yourwordpressfolder/recover.php
4. Enter the new URL for your site (ensuring it is in the format ‘http://www.yoursite.com/yourwordpressfolder’ without the ”)
5. Click Submit
6. Once you receive a confirmation message DELETE recover.php from your wordpress folder. Leaving it there is a DRASTIC security risk.

Download

WP-Recover v1.0 Stable

Getting Help

Ideally if you need assistance please pop over and log a bug/support request on the JIRA Bug Tracking Site, although if you have any issues using that you can also use the Open Source Battlefield Contact Page or leave a comment here.