• If you have ever accidentally hosed up your siteurl and/or home values you know what a pain in the butt it can be to access your database to change those settings back.

    WordPress Emergency URL Changer Thing allows you to change those to working values within your browser without ever having to access your database using phpmyadmin, plesk, cpanel, etc..

    There are two password checks — one for accessing the script itself, and one that checks that the current wp user has the correct privledges to make the changes.

    Works with 2.2 and 2.0.

    Download, video tutorial, and info is here:

    https://www.village-idiot.org/archives/2007/07/04/wp-emergency-url/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter whooami

    (@whooami)

    I discovered another use for this script, by the way.

    While I am adamant about the fact that the two files it uses ought to be deleted outright and NOT left on a live server — the potential exists for this to be used for on the fly moving of your install.

    what would need to be done:

    1. rename the main script file to something other than emergency-url-change.php This is done just to prevent the casual person poking around looking for it. For purposes of this example, rename it to changer.php

    There’s no need to rename the config file though you could do that as well, just making sure to change the line inside the other file that looks for it.

    2. Lets assume you have your blog installed wordpress/ and lets say you want your blog installed into blog/ but you want to keep the database stuff in tact.

    3. You use an ftp client to access your site, you rename the wordpress directory to blog

    4. Open the renamed file in your browser, taking care to to remember that the file is now inside blog/ so like you might use:

    https://www.domain.com/blog/changer.php

    At that point you can change your 2 settings.

    two weeks later, you decide you want to move your install again.. do the same thing.

    This works perfectly as long as you arent looking at changing the database and you are simply moving around within your own site.

    It could also be done moving from a subdirectory to your web root..

    You just move all the files, including the 2 script files to the root of your site.

    It could also be done moving from a subdirectory to your web root..

    Hmmm… Isn’t simpler if I go into the admin > Options: change the example.com/blog to example.com?
    Then I move the files via FTP – which anyway has to be done even when using the script.
    Just wondering… ??

    Thread Starter whooami

    (@whooami)

    simpler? No, not really unless you count the one extra login to access the script as harder :).

    In your example, its probably an equal amount of work, as long as you have already got the script uploaded to the directory with the wp files, and that you move it along with those files.

    The joy in this is that you dont have to know where you want to go first. You just move/change and go!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress Emergency URL Changer Thing’ is closed to new replies.