Internet Marketing Blog

The HubSpot Inbound Internet Marketing blog covers all of inbound marketing - SEO, Blogging, Social Media, Landing Pages, Lead Generation and Analytics.

Subscribe to our RSS Feed
HubSpot RSS Feed

HubSpot on Twitter HubSpot on Facebook HubSpot on LinkedIn HubSpot on Google Buzz HubSpot Blog RSS

Subscribe via Email

Your email:

Get Certified in Inbound Marketing

Inbound Marketing University - Free Marketing Training Online Classes

Inbound Marketing Software

Learn how HubSpot can help turn your business into an inbound marketing machine.

Website Grader Badge

Marketing Resources

Grader.com Tools
 
inbound marketing book

Connect with Us

Want to share your Inbound Marketing advice with the community? Submit guest post ideas to rburnes[at]hubspot[dot]com.

HubSpot's Inbound Internet Marketing Blog

Current Articles | RSS Feed RSS Feed

The 301 Redirect: How To Change Your Website Address Without Losing Search Rankings

 | Submit to Digg digg it | Submit to Reddit reddit | Add to delicious delicious | Submit to StumbleUpon StumbleUpon | Share on Facebook Facebook | Share on Twitter Twitter | Share on LinkedIn LinkedIn 



Along the lines of one of my prior articles, “Understanding RSS: A Guide For The Insanely Busy Executive” this article is intended primarily for non-techie types that want to get a better handle on how to correctly change a website address without losing “link love” (the value you build from a search engine optimization perspective for inbound links).  If you happen to be a techie and have wandered into this article, that’s fine too.  You can bookmark this article for later use as it will be a convenient way for you in the future to explain to business people (the non-techies) how the whole redirection thing works and why a 301 redirect is different from a 302 redirect.  It’ll save you 10 minutes of your life that you’ll never get back.  You’re welcome.

If you’re the non-techie type, or just haven’t been exposed to the whole redirection thing yet, read on.

Friends, I’ve Moved – Here’s How To Find Me

At some point in the evolution of your website (be it your business website, a blog or anything else), you may find it necessary and/or desirable to change your website address.  A perfect example of this is if you start off with a blog on blogspot.com like this:  yourcompany.blogspot.com.  Lets say that you then later decide to acquire a “real” domain name and put your blog on it’s own domain like this:  yourcompany.com.  I’ve written before about why it’s a bad idea to use a sub-domain like yourcompany.blogspot.com if you’re serious about your business blogging.  You can read that article here: “Why Your Business Blog Shouldn’t Be On BlogSpot.com”.  

There are two basic ways to effectively implement a “forwarding address” when you change the name of your website.  There’s the easy way, and there’s the right way. 

302 “temporary” redirect:  First, the easy way:  When configuring the output of a website (which is basically HTML), it is possible to add meta-data to the output that tells the world that the content they were looking for is no longer here but actually over there.  This is called a “302 redirect” or also known as a “temporary redirect”.  The effect of this type of redirect is simple to understand.  Any users that try to access your old website are automatically forwarded to the new website.  So, in theory, you shouldn’t really lose any visitors.  The real-world equivalent to this is posting a sign on your front door that says “Moved to 456 Main Street, Boston, MA”.  It is understood that when visitors come and “see” this sign, they are magically teleported to your new address .  Nice and simple, right?  Not so fast.  One important point here is that when the same visitors need to visit you again, they still go t o your old house, only to be teleported again.  Why?  Because they’re not sure if you’ve actually permanently moved, so they keep checking the old house, just to be safe.  

The major problem with the 302 (temporary) redirect is that the search engines don’t accept it as a valid address change.  The reasons for this are somewhat complex and convoluted but they don’t really matter to you anyways.  You’re going to have to trust me on this (or do your research).  Here’s what happens:  Let’s say that over some period of time you manage to get about 100 links from various websites to yourcompany.blogspot.com (your old address).  This is great.  Having these “inbound links” is an important factor in driving your search rankings.  Now, you change your address to yourcompany.com.  What happens?   Well, as far as Google (and the other engines) is concerned, yourcompany.com is a net new site with zero inbound links.  Seriously?  Yes, seriously.  Though it is the same website, Google will not give you credit for the inbound links to the old address – as long as you’re using a 302 “temporary” redirect.  Actually, this loss of link love is your best case scenario with a 302.  In your worst case scenario, you can actually get banned from the search engines for doing a redirect the “wrong” way.  The reasons for this are also complicated (but well documented).  There were some big examples of sites getting banned for this kind of thing back in 2004.  For now, let’s assume that the worst that’s going to happen is you’re going to lose all your link love, and hence your search engine rankings.  How do you avoid this?  I’m glad you asked.

301 “permanent” redirect:  The 301 redirect is a lot like it’s cousin the 302 redirect, only it’s permanent.  Well, it’s really not permanent (because clearly, you could change it again if you wanted to), but it is designated as being permanent.  Here’s the real-world analog to this.  Let’s say, once again, that you have now moved to “456 Main Street, Boston MA”.  This time also, you leave a sign on your old front door, but it says:  “Permanently Moved to 456 Main Street, Boston MA – UPDATE YOUR ADDRESS BOOK”.  The net effect is that visitors that come to your old house still get magically teleported, but they also update their address books, so they don’t repeat that mistake again.  Back to the real Internet example.  When you setup your website with a 301 permanent redirect, you are telling Google to update it’s index and are essentially saying:  “Hey, I had this website over here, but it’s now over there – update all the inbound links in your index”.  Thankfully, Google (and just about every other search engine that matters) will respond obediently.  You get to keep all that link love you worked so hard to get.  Your new site starts off where the old one left off.  Problem solved, right?  Not so fast.

Now that you understand the difference between a 301 and a 302 (301=permanent, 302=temporary), it’s important to know that it’s not always possible to actually implement a 301 redirect based on the software you are using for your website.  A really important example of software that doesn’t (currently) support a 301 redirect is Google’s Blogger (blogspot.com).  So, if you’re building a ton of link-love on yourcompany.blogspot.com, I’d recommend getting a “real” domain name before you do too well.  Otherwise, you’re just going to start from scratch again unless Google changes its errant ways.

That’s it.  Hopefully, you won’t have to change website addresses all that often, but if you do, keep your fingers crossed that you’ll be able to use a 301 permanent redirect (or make sure you are using a platform that supports it).  Otherwise, you’ll probably have to climb the search rankings hill all over again.

Have questions, thoughts, war stories?  Would love to hear them.  Leave a comment.

-Dharmesh Shah.
 
SEO kit


Posted by Dharmesh Shah on Wed, Nov 15, 2006 @ 10:07 AM

COMMENTS

This means it is one of the factors when choosing a host for your company website. One needs to make sure they allow this, otherwise you are locked down with the host, just like those who are locked down with blogspot.com for good.

posted on Wednesday, November 15, 2006 at 2:03 PM by Nader Soliman


Very useful educational post, especially for non-tech business people such as myself.

posted on Wednesday, November 15, 2006 at 3:47 PM by Sheamus


good

posted on Thursday, November 30, 2006 at 5:30 PM by zach


What if i have a url likewww.site.com/product/index.aspx?cat=100&prod=200 and i deside to make changes to my database as well as my url so the new link would bewww.site.com/product/catalog.aspx?cat=1&prod=2 is "301 redirects" then worth anything at all ?

posted on Friday, December 15, 2006 at 3:11 AM by Martin


Very useful text especially for noobies.

posted on Thursday, June 21, 2007 at 11:37 AM by Mark


Thank you so much, I was just wondering how to move site to different domain and keep visitors.

posted on Wednesday, July 04, 2007 at 2:30 AM by dekser


excellent description of the differences between 301 and 302. I'm actually in the process of moving my blog and am dealing with exactly this issue.

posted on Sunday, May 04, 2008 at 7:46 PM by talan


This is in stark contrast to the SEO guru who said that temporary redirects are better for moving a site without losing ranking.
Why do SEO guru's never agree on anything?

posted on Wednesday, June 18, 2008 at 1:23 PM by hank


I tried to put a 301 redirect to the site http://www.alarmsecurityaz.com - but it was just a simple html code that I placed just below my header in the index.html page? Is this good enough to produce the results I need for all prior link building?

posted on Friday, July 25, 2008 at 11:24 PM by Phoenix Standage


thank you for the very useful info, if anyone can help on how to configure the 301 redirect. thx

posted on Wednesday, October 22, 2008 at 4:59 AM by Charles


I have a question. 
 
I have a site, and have tons of pages indexed in google. 
 
I need to make changes to all my pages, and need to block traffic to all these pages and make them go to my other domain temporary. 
 
On my other domain its just my store alone, with none of the old pages or content on the old site. 
 
What is the best way to temporarily send all my traffic to one site, and not lose all my SE rankings and indexed pages as they will be back up in 1 month or so.

posted on Wednesday, October 22, 2008 at 5:18 PM by adam


Just stumbled upon this blog post. Very helpful and I like the way you describe the redirects. :)

posted on Saturday, December 13, 2008 at 5:22 PM by The StarShine Company


I am being asked to refresh meta data -- page titles, keywords, descriptions -- for a website. However, I just found out that the website I am doing this for is soon to be absorbed into another website via 301 redirects. The reason the company wants to combine the sites is to increase indexed pages and links in total. The markets are relatively the same; so, this makes sense to me. However, the two markets are in two different countries. Originally there was a US English site and a UK English site. Now they are going to merge them by placing 301 on the US site and sending folks to the UK site. At the same time they want to update the US site meta tags to also make the US site more relevant. Will this work?

posted on Monday, February 16, 2009 at 1:49 PM by Dawn


Yeah it's scary - I have a static web site worth about $10k per year in Adsense that i LONG to convert to a WP blog for long term benefit but am scared shitless in case I do it wrong!!!

posted on Saturday, March 28, 2009 at 1:37 PM by Clive


BE"H Hi. Thanks for the tip. Now I have a question: I am already on a private domain, but I am still using Blogger (and will continue doing so). For some reason I need to cancel a blog page but still want to keep the traffic (it has many excellent incoming links). Can I redirect it to a new page? Of course, the URL is not blogspot as I am on my domain. I ask this because Blogger assigns URLs according to months, so it is not possible recover an old URL.

posted on Sunday, May 03, 2009 at 6:10 AM by chazal


blogger claims that the 302 temp to 301 redirect issue has been solved now.

posted on Monday, June 08, 2009 at 6:57 AM by Master And Student


I tried going from http://www.tibetangoji.ca 
 
to .com lost my ranking

posted on Friday, July 17, 2009 at 2:19 PM by Tibetan


Comments have been closed for this article.