Call to Order 1-727-280-6071

Changing the Domain URL of a WordPress site

First, Backup database and wp-config file.
Then edit wp-config lines and replace with New Site Name
define(‘WP_HOME’,’new-site-name.com’);
define(‘WP_SITEURL’,’http://new-site-name.com’); /* http:// may be optional /*

then login into your phpmyadmin from your cpanel and download your database and backup. open it with any word program and find the lines and replace with New Site Name

line ~ 8495
INSERT INTO `wp_site` (`id`, `domain`, `path`) VALUES
(1, ‘new-site-name.com’, ‘/’);

line ~ 8532
(14, 1, ‘siteurl’, ‘http://new-site-name.com’), /* http:// may be optional /*

line ~ 8758
(15, 1, ‘source_domain’, ‘new-site-name.com’),

and replace any other source_domains you come across… again this is a starting guide 🙂

Changing WordPress Domain URLChanging WordPress Domain URLChanging WordPress Domain URL