I was scanning my website through some free SEO tools and found that some of the URLs on my website are showing 302 redirect. I saw some suggestions like convert 302 redirect into 301 and it will be fixed. But I have no idea what is 302 and what is 301. Any suggestions what is 302 redirect and how to convert it into 301 ? Thanks in advance.
This is also new topic for me , so thanks for sharing so nice and so use full information sharing with us.
Very simple, 302 temporary redirect and 301 is permanent redirect. 302 redirect tells search bots that this link is temporarily shifted and 301 tells it is forever removed. Google recommend 301 redirect if you`re removing any link forever.
Let me explain this More I have the website domains created this way for opening same site in different languages like below en.xyz.com es.xyz.com de.xyz.com it.xyz.com And these 4 are the only URLs that are throwing 302 redirect error. I am using PHP's Symfony framework for developing the site and it has a feature for language changing like this. Any suggestions now how this can be fixed ?
You could correct it by adding a few lines of code in your .htaccess file (http://jesperastrom.com/seo/how-to-do-a-htaccess-301-redirect/) However, if you're not comfortable doing this, your host should be able to help you out.
302 are mostly set in your .htaccess file. ... usually 302 isn't an error. Are you getting an error message?
Go for 301 redirect. 302 doesn't make much sense... Also because Google likes 301 better, I use that one
In easy words 301 redirection are permanent that is page is moved to new destination permanently while 302 are temporary, in which page is moved to different location temporary.
302 is a type of redirection which means temporary redirection and 301 is also a type of redirection which means permanently redirection.
As per my opinion 301 means permanently redirect,for example If you are permanently moving content to a new URL then use a 301.It avoid duplication. 302 means temporary redirect, for example if you are updating a section of your site and want the content to be temporarily available elsewhere. These redirects instruct the visitors that you either have temporarily or permanently moved to another URL.The visitors report back and the search engine updates the links in the database without affecting your page rank.
Hi stuartthomas, Thanks for share this all information regarding 301 redirection and 302 redirection. 301 redirection is page permanently redirect and 302 is page temporary redirect. I need more knowledge about this both redirection.
301 and 302 both of them are redirects. for removing canonical error we must redirect the link to one complete and right url 301 is mostly use because it is the permanent redirect and 302 is the temporary redirect so always use the 301 redirect for your website to reduce confusion to users.