Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good practice to redirect pages?

Tags:

redirect

php

I remember reading somewhere it's a good practice to redirect pages using GET to show the next page after a POST request. Why is it so?

like image 781
SteD Avatar asked Jan 07 '10 14:01

SteD


People also ask

What is the best practice to redirect a page?

A 301 redirect is the most commonly used redirect and should be used when you want a domain or page URL to be permanently moved to a new URL. A 301 (aka permanent) redirect tells search engines to no longer index the old page or domain, and to pass “link juice” or authority on to the new page.

What is a redirect strategy?

A 301 redirect strategy enables you to gather the valuable link authority from discontinued URLs and shift it to live, relevant ones, giving your customers the next best option when the page they requested no longer exists.

What redirect is best for SEO?

Use a 301 redirect to permanently redirect a URL to a new destination. This way, you tell both visitors and search engine crawlers that this URL changed and a new destination is found. This the most common redirect.


1 Answers

This way, if the user reloads the page, the browser won't send another POST.

For example, if the page is an order confirmation page, you don't want the order to be repeated if the user refreshes the page.

like image 196
SLaks Avatar answered Oct 20 '22 22:10

SLaks