Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

302 Redirect Method

Status
Not open for further replies.

jdubbish

Programmer
Dec 9, 2004
70
US
So, I've researched a lot on 302 vs 301 redirects, and am convinced 302 is the best method to use when switching domain names.

I am setting all of my pages on my old domains to point to the related page on the new domain via a 302.

My question is, if I replace the content on the pages with a 302 redirect alone how do the engines handle this? Do they keep the last view of the page in the index, or do they continue to index the content after the 302 header?

This information is vital as I need to know if I should leave the content on the page with the 302 header or just replace it.

Thanks!
 
Hi

jdubbish said:
am convinced 302 is the best method to use when switching domain names.
No. 302 is a status considered temporary, so the search engine will keep asking the old URL. 301 is permanent status, so the search engine will update its database and in the future will go directly to the new address.

So use 301 Moved Permanently, and you do not have to keep a copy of the site in the old location.

The robots speaks perfectly one language : the standards. To communicate with them you too have to learn it. Do not guess what HTTP status code is better for you. Read and use RFC 2616, it tells you everything.

Feherke.
 
I understand the purpose of the different methods, however, I am using 302 to maintain current rankings for the old domain while gaining them at the new (loss prevention essentially).

Many go back and forth on this issue, and the search engines actually handle 302 better nowadays to help people prevent loss of ranks when changing domains.

My question, again, is if I use a 302 redirect how will the rankings for the old domain be weighed, on the new content on the new domain, by the old content on the old domain, or by the current content on the old domain.

Thanks for that link though....still a lot I haven't read since the last I saw that document.
 
Hi

When a 301 Moved Permanently is encountered, only the URL is updated, the ranking is kept.

If you maintain both sites, the search engine will recognise the identical content and will ignore one of them, probably the newer one.

Feherke.
 
That is in fact the article I've read before. There's been a bit of back and forth discussion as to the validity of it across the web.

Right now I've forwarded two of my product sites that we get the most hits on with 302, and then our main company site with 301. I'll be sure to post back the results after a few months, although it seems some of the company site rankings have already fell off, but I'll have to investigate this further.

Thanks for all the replies!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top