We are planning to change the domain name of our website.We are not changing the host but creating a new domain and will close/redirect all traffic to new domain (there will be not update on the old domain).
Since most of the database still will be same as we need old post so i am wondering how best we can handle this situation.i have following points in my mind
- Install new WordPress.
- Copy all the static contents (images/videos etc) to new WP installation location.
i am confused about how to handle database stuff? should we create a new database and import the data from old database to new one and den set any links and HOME URLs using SQL script.
Please advise.Also what is the best way to import the database
I’ve written a very simple script that is built to do exactly what you’re talking about. Here’s the basic process you’ll want to follow.
If you need further help, there’s a couple of great threads here on this forum. Also see the Codex article on backing up your database.
Basically, you’d need to do the following…
Check out Moving WordPress for more.
Is there any reason that simply exporting your content and then importing via the importer plugin wouldn’t work? I recently moved my blog in an almost identical manner to what you are describing (302 redirect, keeping all the content, etc) and it went smoothly enough.
Other than that, WordPress has an excellent guide to moving your install across folders, servers or just changing URLs.