A 301 redirect is a permanent move to a new URL. The server names that address in a Location header, and the browser requests it next, so someone who still has the old link reaches the page.

That old link is the one on a postcard, in a search result, or in an Instagram bio from months ago. The customer taps what they saved, and that tap should open the page you use now.

What a 301 Redirect Tells the Browser

The HTTP specification says a 301 means the target resource has been assigned a new permanent URI, and future references ought to use one of the enclosed URIs. The server should put the preferred URI in a Location header. A browser may follow that value.

MDN’s 301 reference describes the same handoff: the browser requests the URL in Location and shows that page. The browser asks for the new address on its own. The person who saved the link can keep using it.

MDN’s redirect guide lists 301 with the permanent redirects, and the typical use it names is a website reorganization. Search engines that receive a 301 attribute the original URL’s links to the new page, passing the SEO ranking along.

The specification calls a 301 response heuristically cacheable, unless the method definition or an explicit cache control says otherwise. On November 17, 2026, https://developer.mozilla.org/en-US/docs/AJAX still answered 301, with Location: /en-US/docs/Learn_web_development/Core/Scripting/Network_requests and Cache-Control: max-age=2592000, public. That max-age is 2,592,000 seconds, or 30 days, so a stored redirect can outlive the afternoon you set it.

Purple and green chain links floating over a glowing ring in starry purple space

  • 301: the address changed for good. The catering URL on the postcard should keep opening the catering page you use now.
  • 302: the other address is temporary. The same specification says the resource resides temporarily under a different URI, and the client ought to keep using the requested URI on later visits. MDN says search crawlers do not memorize the temporary URL.

A holding page for a repaint or a sold-out week fits a 302. A path you have retired fits a 301.

Say a supper club in Decatur, Copper Lantern, printed https://www.copperlantern.com/menu on the postcard in the window. The menu they serve now is https://copperlantern.com/menu/.

Those two strings are not the same address. A 301 from the printed one names the page they use now.

HTTP/1.1 301 Moved Permanently
Location: https://copperlantern.com/menu/

The browser follows Location, and the menu is what opens. The postcard has www and no trailing slash. The server has the address the kitchen uses today.

The Location header should name the page that replaced the old one. MDN describes a permanent redirect as the way to keep bookmarks and outside links working after URLs change. A holiday-tray path belongs on the catering page you serve now.

A canonical URL is the address you want search engines to treat as the original. A 301 is the response that sends the browser to the new address.

Request the old address and read the answer.

  • Status: 301 when the move is permanent, 302 when it is only for now.
  • Location: the new URL of that same page, in a single hop.
  • Landing page: the menu, the booking form, or the service that replaced the old path.

MDN notes that every redirect adds a round trip, and that links on your own site should use the new URL. The redirect covers the postcard and the search result that still carry yesterday’s address. Buttons on your own site can use the address in Location.

The old link should open the page you would hand a customer today. When that page is how people book, the redirect is part of the site. We build that kind of site on our website design page.

Bring the old URL and the page it should open. Fifteen minutes on the calendar is enough to see whether that link still lands.