I have a site hosted with WordPress. I want to do two things:
- Move the site from one server to another server .
- Redirect my old domain name to my new domain name.
For the first part I plan to follow the MakeUseOf article about moving a WordPress blog .
So I intend to start by installing WordPress on the new server, then exporting the .sql file from phpMyAdmin, and import to new server then copy wp-content and its content to new server.
For the redirect i plan to use Redirect 301 -following commands in .ht access:
# Begin old site rewrites RewriteEngine on RewriteBase / RewriteRule ^oldlink /newlinks/ [R=301,NC,L] # End old site rewrites
My question is: is this correct way to do so? Or is there a better way to do this?