Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Standalone script used to update all URLs in a WordPress installation

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 wp-update-urls.php
Octocat-spinner-32 wp-update-urls.png
README.md

wp-update-urls

Standalone script used to update all URLs in a WordPress installation. This script can be very useful after you move your site to a new server or domain name, as well as when deploying a local copy of a WordPress site to a 'live' location.

How to use this script

  1. Download from GitHub

  2. Upload wp-update-urls.php to your WordPress installation directory. This is where the wp-config.php file lives.

  3. Browse the wp-update-urls.php script on your browser. If your site's URL is http://yoursite.com then the URL you are looking for will be http://yoursite.com/wp-update-urls.php . At this point you should see the following: Screenshot

  4. Check that the replace field shows the new base URL for your site. Bear in mind that http://www.yoursite.com is not the same as http://yoursite.com.

  5. Click on 'Process' to replace all occurrences of search with replace in the database.

  6. DELETE SCRIPT FROM SERVER

Something went wrong with that request. Please try again.