Would this work for changing site URL?
-
To change from a development URL to the production URL, i.e. change testdomain.com to proddomain.com for a new WordPress site, is there any reason why this would not work?
1) Using PHPMyAdmin, back up the database (with DROP TABLE IF EXISTS, etc.) to SQL file.
2) Use an editor to do a global search & replace testdomain.com -> proddomain.com.
3) Restore the database from the edited SQL file.
I know there’s a caution in the doc here about changing GUIDs, but this is all fresh with no posts, comments, or external references, so would seem OK.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Would this work for changing site URL?’ is closed to new replies.