Is it bad to use 301, 302 redirects after processing a form submission. Or is it only advised to use for pages that have “really been moved”. I can show users nice urls if I use redirects.
Please advice.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, it is not bad. It’s actually recommended best practice and called PRG (POST, Redirect, GET). This prevents users from seeing the nasty “Do you really want to send this form again?” message.
It’s recommended that you send 303 (See Other) or 302 (Found). 301 is saying that this resource has been relocated permanently.