There are two types of redirections: 301 and 302.
When in doubt, you should use a 301 redirect.
There are some benefits to using a 302 redirect, but in almost all cases you will want a 301. Enough said on this topic because only a very small percentage of users will need advanced information on using a 302 redirect and how the major search engines handle them slightly differently.
The 301 redirect is SEO friendly
The 301 redirection is interpreted by search engines as a “moved permanently” redirect. To a search engine, this means “you requested a specific URL-A, but it has forever moved to this other URL-B, so go to URL-B and update your links so you don’t visit the URL-A again.”
The 301 redirect is favored by those who care about search engine optimization because the 301 redirect is generally understood to pass through link ranking signals like inbound links and PageRank. Because search engines know this and generally operate in this manner, the 301 redirect is used by many URL shortening services like bit.ly, tinyurl.com, etc.
[301 redirects are detailed in
RFC 2616: “The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs.”]
The 302 redirect is a different story
The 302 redirect basically says that "you requested URL-A but it can temporarily be found at URL-B, and every time you need URL-A come to me and I’ll tell you where to find URL-B because URL-B may change over time."
Because URL-B (the final destination) will change from request to request, it’s impossible for search engines to carry through
Because the destination of the 302 redirect might change from request to request, it is difficult for search engines to pass through link ranking signals like inbound links and PageRank, so nothing is passed through.
[302 redirects are detailed in
RFC 2616: “The requested resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client SHOULD continue to use the Request-URI for future requests.”]
How to check a redirect
There are a bunch of SEO tools on the web to help you double-check you’re doing things correctly. I did a quick search on Google and the #1 result was from Internet Officer:
Redirect Checker.
Using this tool, I can check on the redirect that I setup for
http://Page2Sucks.com. In the case of this website, I want all traffic to go through the standard-formatted
http://www.Page2Sucks.com URL (note the “www.” in front of the domain), so I set up a redirect for anyone typing in “page2sucks.com” into their browser’s address bar.
When I entered my short domain into the redirect checker tool (link above), here’s what I found:
This is exactly the case I wanted to see — a 301 redirect.