vollyimnetz / wordpress_rename

A one-file script to for renaming URLs in your wordpress DB.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wordpress rename

A one-file developer-script for renaming URLs in your wordpress DB. I use this script quite often to move a wordpress installation from a test-subdomain to the real domain, or from localhost to the server.

How to use

Prerequirements: All thinks are in place. You have setup your wp-config.php correctly, the DB is reachable ... and so on.

  • Download or checkout the script (rename.php) and place it in a public accessable directory. (Note: there is no authentication mechanism - delete the file once your ready.)
  • Create a rename_config.php file and add your settings.
  • Open the script in your Browser and click the start-button.

rename_config.php

$GLOBALS['TM_RENAME_SETUP'] = array(
	'system' => __DIR__,            //Path to wp-load.php
	'old' => 'http://my-old-url.de',//Attention: without post-slash
	'new' => 'http://my-new-url.de',//Attention: without post-slash
);

About

A one-file script to for renaming URLs in your wordpress DB.

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%