General discussion

Difference between 301 & 302 redirect

What is the difference between 301 & 302 redirect??

Discussion is locked
Reply to: Difference between 301 & 302 redirect
PLEASE NOTE: Do not post advertisements, offensive materials, profanity, or personal attacks. Please remember to be considerate of other members. If you are new to the CNET Forums, please read our CNET Forums FAQ. All submitted content is subject to our Terms of Use.
Reporting: Difference between 301 & 302 redirect
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
- Collapse -
I google'd it.
- Collapse -
301 is permanent

and a 302 is temporary.


- Collapse -

301 redirect means that the page has moved permanently to a new location. While 302 redirect means that the moved temporary to new location.

- Collapse -
Difference between 301 & 302 redirect
301 status code means the page has permanently moved to another location and search engine will pass old page value, rank and other important stuff to that newly created page. To obtain the benefit of this, one need to permanently move old page to newly created page.

status code means, the page is temperately not available, this code will acknowledge the search engine about temporally unavailability of the page.
- Collapse -
Difference between 301 & 302 redirect

The difference between 301 and 302 redirects is that 301 tells the search engine that it is a permanent redirection, whereas 302 indicates that it's temporary.

So you would commonly use a permanent 301 if you'd moved your site to a new domain and wanted to redirect the traffic from your old site to your new site.

In comparison, an example of when you would use a 302 redirect would be when you have a site with a page still under construction, but you want to let the public know that it's being worked on and will be live soon, so you could redirect to a placeholder page with information of what's being worked on.

CNET Forums