{"id":100,"date":"2026-11-25T06:07:43","date_gmt":"2026-11-25T06:07:43","guid":{"rendered":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/"},"modified":"2026-11-25T06:07:43","modified_gmt":"2026-11-25T06:07:43","slug":"301-302-307-308-website-redirects","status":"publish","type":"post","link":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/","title":{"rendered":"301 vs 302 vs 307 vs 308: Choosing the Right Website Redirect"},"content":{"rendered":"<p>A website redirect tells a browser that the requested URL should lead somewhere else. That sounds simple, but the HTTP status code changes what the move means and how a client handles the next request. Choosing the wrong code can produce broken forms, confusing caches or a migration that never quite settles. Here is a practical guide to 301, 302, 307 and 308 redirects.<\/p>\n<h2>Start With Permanent Versus Temporary<\/h2>\n<p>Use a permanent redirect when the old URL has been replaced for the foreseeable future. A 301 or 308 communicates that the resource has a new permanent address. Typical examples include moving a page to a new path or consolidating a site&#8217;s preferred hostname. A temporary redirect, usually 302 or 307, fits a short-lived change where the original URL is expected to work again.<\/p>\n<p>Do not use a permanent code for a maintenance detour merely because it seems convenient. Clients can remember permanent redirects, making a later reversal harder to test. During a <a href=\"https:\/\/www.tempohosting.co.uk\/blog\/website-migration-checklist-minimal-downtime\/\" target=\"_blank\" rel=\"noopener\">website migration<\/a>, plan the final URL map before enabling permanent redirects.<\/p>\n<h2>Know What Happens to the Request Method<\/h2>\n<p>The important distinction is not only duration. For historical compatibility, a user agent may change a POST request into a GET while following a 301 or 302. Codes 307 and 308 explicitly preserve the original method and request body. That matters for forms, API endpoints and uploads, where silently changing the method can alter the operation or lose submitted data.<\/p>\n<p>For ordinary page navigation, a 301 is a familiar permanent choice and a 302 is a familiar temporary one. When preserving the method is essential, choose 308 for a permanent move or 307 for a temporary one, then test the actual client. A 303 has a different purpose: it explicitly directs the client to retrieve another resource with GET, such as a confirmation page after a form submission.<\/p>\n<h2>Build a Clean Redirect Map<\/h2>\n<p>Point each old URL directly to its final destination. Avoid a chain that hops through several addresses, and avoid loops that send a browser back to an earlier URL. Preserve a meaningful destination for each page rather than redirecting everything to the homepage. Update internal links and canonical references to the final URLs so visitors do not need a redirect on every click.<\/p>\n<p>Redirects are HTTP responses, not DNS records. Changing hosting or a domain&#8217;s DNS settings does not automatically create the page-level redirects your old URLs need. Our overview of <a href=\"https:\/\/www.tempohosting.co.uk\/blog\/http-status-codes-explained-for-website-owners\/\" target=\"_blank\" rel=\"noopener\">HTTP status codes<\/a> explains where redirects fit among other responses.<\/p>\n<h2>Test Both Headers and Behaviour<\/h2>\n<p>Check a sample of old URLs, including paths with query strings and any endpoints that accept POST. Inspect the status code and <code>Location<\/code> header, then follow the redirect to confirm the final page works. A command-line request can expose unexpected chains; our <a href=\"https:\/\/www.tempohosting.co.uk\/blog\/test-website-with-curl-status-redirects-timing-tls\/\" target=\"_blank\" rel=\"noopener\">curl testing guide<\/a> shows how to inspect responses. Also test in a browser, especially after changing a permanent rule that may already be cached.<\/p>\n<p>Document why each redirect exists and remove temporary rules when their purpose ends. For the exact semantics of the status codes, see the redirection section of <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc9110.html#section-15.4\" target=\"_blank\" rel=\"noopener\">RFC 9110: HTTP Semantics<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Understand when to use 301, 302, 307 and 308 HTTP redirects, how request methods differ, and how to test a clean website redirect map.<\/p>\n","protected":false},"author":2,"featured_media":99,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[36],"tags":[32,33,6,13,30],"class_list":["post-100","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-hosting","tag-http-redirects","tag-http-status-codes","tag-web-hosting","tag-website-migration","tag-website-troubleshooting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>301 vs 302 vs 307 vs 308: Choosing the Right Website Redirect - Tempo Hosting Blog<\/title>\n<meta name=\"description\" content=\"Compare 301, 302, 307 and 308 HTTP redirects. Learn when a move is permanent, how request methods behave, and how to test redirects safely.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"301 vs 302 vs 307 vs 308: Choosing the Right Website Redirect - Tempo Hosting Blog\" \/>\n<meta property=\"og:description\" content=\"Compare 301, 302, 307 and 308 HTTP redirects. Learn when a move is permanent, how request methods behave, and how to test redirects safely.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/\" \/>\n<meta property=\"og:site_name\" content=\"Tempo Hosting Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-25T06:07:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.tempohosting.co.uk\/blog\/wp-content\/uploads\/2026\/11\/http-redirects.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Arthur Edward\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Arthur Edward\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/\"},\"author\":{\"name\":\"Arthur Edward\",\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/0c5cdd8616ac5c6b1d288da7ec3dd903\"},\"headline\":\"301 vs 302 vs 307 vs 308: Choosing the Right Website Redirect\",\"datePublished\":\"2026-11-25T06:07:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/\"},\"wordCount\":504,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/http-redirects.webp\",\"keywords\":[\"HTTP redirects\",\"HTTP status codes\",\"Web Hosting\",\"website migration\",\"website troubleshooting\"],\"articleSection\":[\"Web Hosting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/\",\"url\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/\",\"name\":\"301 vs 302 vs 307 vs 308: Choosing the Right Website Redirect - Tempo Hosting Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/http-redirects.webp\",\"datePublished\":\"2026-11-25T06:07:43+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/0c5cdd8616ac5c6b1d288da7ec3dd903\"},\"description\":\"Compare 301, 302, 307 and 308 HTTP redirects. Learn when a move is permanent, how request methods behave, and how to test redirects safely.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/http-redirects.webp\",\"contentUrl\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/http-redirects.webp\",\"width\":1200,\"height\":675,\"caption\":\"HTTP redirects\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/301-302-307-308-website-redirects\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"301 vs 302 vs 307 vs 308: Choosing the Right Website Redirect\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/\",\"name\":\"Tempo Hosting Blog\",\"description\":\"Practical guides to web hosting, websites, domains and online success.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/0c5cdd8616ac5c6b1d288da7ec3dd903\",\"name\":\"Arthur Edward\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d305c187f77f40bd7f15259964168e8350a52598793dbb6c5ee98b63e767dada?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d305c187f77f40bd7f15259964168e8350a52598793dbb6c5ee98b63e767dada?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d305c187f77f40bd7f15259964168e8350a52598793dbb6c5ee98b63e767dada?s=96&d=mm&r=g\",\"caption\":\"Arthur Edward\"},\"url\":\"https:\\\/\\\/www.tempohosting.co.uk\\\/blog\\\/author\\\/arthur-edward\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"301 vs 302 vs 307 vs 308: Choosing the Right Website Redirect - Tempo Hosting Blog","description":"Compare 301, 302, 307 and 308 HTTP redirects. Learn when a move is permanent, how request methods behave, and how to test redirects safely.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/","og_locale":"en_US","og_type":"article","og_title":"301 vs 302 vs 307 vs 308: Choosing the Right Website Redirect - Tempo Hosting Blog","og_description":"Compare 301, 302, 307 and 308 HTTP redirects. Learn when a move is permanent, how request methods behave, and how to test redirects safely.","og_url":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/","og_site_name":"Tempo Hosting Blog","article_published_time":"2026-11-25T06:07:43+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/www.tempohosting.co.uk\/blog\/wp-content\/uploads\/2026\/11\/http-redirects.webp","type":"image\/webp"}],"author":"Arthur Edward","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Arthur Edward","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/#article","isPartOf":{"@id":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/"},"author":{"name":"Arthur Edward","@id":"https:\/\/www.tempohosting.co.uk\/blog\/#\/schema\/person\/0c5cdd8616ac5c6b1d288da7ec3dd903"},"headline":"301 vs 302 vs 307 vs 308: Choosing the Right Website Redirect","datePublished":"2026-11-25T06:07:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/"},"wordCount":504,"commentCount":0,"image":{"@id":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tempohosting.co.uk\/blog\/wp-content\/uploads\/2026\/11\/http-redirects.webp","keywords":["HTTP redirects","HTTP status codes","Web Hosting","website migration","website troubleshooting"],"articleSection":["Web Hosting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/","url":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/","name":"301 vs 302 vs 307 vs 308: Choosing the Right Website Redirect - Tempo Hosting Blog","isPartOf":{"@id":"https:\/\/www.tempohosting.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/#primaryimage"},"image":{"@id":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tempohosting.co.uk\/blog\/wp-content\/uploads\/2026\/11\/http-redirects.webp","datePublished":"2026-11-25T06:07:43+00:00","author":{"@id":"https:\/\/www.tempohosting.co.uk\/blog\/#\/schema\/person\/0c5cdd8616ac5c6b1d288da7ec3dd903"},"description":"Compare 301, 302, 307 and 308 HTTP redirects. Learn when a move is permanent, how request methods behave, and how to test redirects safely.","breadcrumb":{"@id":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/#primaryimage","url":"https:\/\/www.tempohosting.co.uk\/blog\/wp-content\/uploads\/2026\/11\/http-redirects.webp","contentUrl":"https:\/\/www.tempohosting.co.uk\/blog\/wp-content\/uploads\/2026\/11\/http-redirects.webp","width":1200,"height":675,"caption":"HTTP redirects"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tempohosting.co.uk\/blog\/301-302-307-308-website-redirects\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.tempohosting.co.uk\/blog\/"},{"@type":"ListItem","position":2,"name":"301 vs 302 vs 307 vs 308: Choosing the Right Website Redirect"}]},{"@type":"WebSite","@id":"https:\/\/www.tempohosting.co.uk\/blog\/#website","url":"https:\/\/www.tempohosting.co.uk\/blog\/","name":"Tempo Hosting Blog","description":"Practical guides to web hosting, websites, domains and online success.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tempohosting.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.tempohosting.co.uk\/blog\/#\/schema\/person\/0c5cdd8616ac5c6b1d288da7ec3dd903","name":"Arthur Edward","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d305c187f77f40bd7f15259964168e8350a52598793dbb6c5ee98b63e767dada?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d305c187f77f40bd7f15259964168e8350a52598793dbb6c5ee98b63e767dada?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d305c187f77f40bd7f15259964168e8350a52598793dbb6c5ee98b63e767dada?s=96&d=mm&r=g","caption":"Arthur Edward"},"url":"https:\/\/www.tempohosting.co.uk\/blog\/author\/arthur-edward\/"}]}},"_links":{"self":[{"href":"https:\/\/www.tempohosting.co.uk\/blog\/wp-json\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tempohosting.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tempohosting.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tempohosting.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tempohosting.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":0,"href":"https:\/\/www.tempohosting.co.uk\/blog\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tempohosting.co.uk\/blog\/wp-json\/wp\/v2\/media\/99"}],"wp:attachment":[{"href":"https:\/\/www.tempohosting.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tempohosting.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tempohosting.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}