What is a 301 redirect?
The HTTP standard defines several status codes for redirection:
* 300 multiple choices (e.g. offer different languages)
* 301 moved permanently
* 302 found (originally temporary redirect, but now commonly used to specify redirection for unspecified reason)
* 303 see other (e.g. for results of cgi-scripts)
* 307 temporary redirect
Why do you want to use 301 redirects when possible?
Google will transfer your existing search rankings and good keywords. Users will arrive at the new site seamlessly.
How to do you create a 301 redirect?
A 301 redirect will send the user along to the new location before any content is served by using http headers.
Can you give me an example of a .htaccess file redirect?
The file will look like this:
RewriteRule (.*) http://www.newsite.com/ [R=301,L]
What does that mean?
- turn on the apache rewrite module
- (.*) is a regular expression which means any character, any number of times, or basically, everything
- followed by the site it should go to
- and R=301 sets the 301 code. L means it’s the last rule that applies, don’t look for any more rules
Why are we getting rid of GoDaddy?
In addition to being a slow host for wordpress, GoDaddy only reads the .htaccess files once every few hours. This makes it VERY difficult to know if your .htaccess file has errors, and if it does have errors you site may not work for a few hours. By comparison, other hosts read the .htaccess file on every page load. This is the way it’s supposed to be done.
Hostnine has a lot better control panel for managing all of the domains. In addition, they have the cPanel which makes maintaining individual domains a lot easier.