hey I have a problem ,302 redirect will be penalized by google and yahoo? because I found many websites use it . when i visite the front page ,it will skip to another page which the URL is very long. Thanks for all help
Neither a 301 nor a 302 redirect will cause any kind of penalty. That's just plain ludicrous. 302 and 301 and are valid w3c.org http status codes. Simply using them will not result in a penalty any more than having a page return a 200 Ok status. HOW you use them can get you penalized (regardless of whether it's a 301 or a 302). For example if your home page is coded to look at the user agent or IP address to determine whether the requester is a search engine or a user so that it can301/302 redirect the search engines to a different page than you serve up to users, this is a form of cloaking. And yes, using a 301 OR a 302 redirect for this purpose CAN get you a penalty... But it's NOT the 301 or 302 redirect itself that gets you penalized, it is the fact that you are cloaking - showing the search engines one thing and users something different. You could just as easily have implemented the cloaking with NO redirect by coding the page's server-side script to essentially say: IF RequestIsFromSearchEngine() THEN RenderSearchEngineContent() ELSE RenderUserContent() This implementation of cloaking would not require a 301/302 redirect, yet you'd still get penalized if caught by Google. My point is that it's the fact that you are cloaking that would get you penalized in this case, and NOT the fact that you used a 301 or a 302. You should use 301 redirects when you rename a page (change it's URL) or delete a page from your site. The 301 Permanently Moved status code tells the search engine that you've renamed or deleted the page for good, so you want them to transfer credit for all inbound links to the OLD redirected URL to the new URL that is the target of the redirect. It also tells them to remove the old URL from their index (at least at Google... the idiots at Yahoo! don't seem to understand this... they continue to show the old URL in their index... go figure!) You should use 302 Temporarily Moved redirects when you want to temporarily send a user to a different content page or if you need to send the user to some page that does not generate any content (it simply runs some server-side scripting - maybe to write data to a database or something). It tells them, "Don't bother going through all the trouble of transferring credit for all inbound links to the OLD redirected URL to the new URL that is the target of the redirect because I'm just redirecting them temporarily". So the old URL stays in Google's index and continues to rank because it continues to get credit for all of it's own inbound links.
I am agree with wistow 301 redirection is the permanent redirection and Google like this redirection ..But 302 is the temporary redirection and it could be harmful for your sites
I agree with Canonical he provides you with the correct information, redirects not hurt your site. The page you redirect will just disappear from the search results that's all.
That was the best 302 Answer I ever read. Its 100% clear in my mind, and so you deserve a big thank you