{
    "title": "301 vs 302 redirect: which to use",
    "description": "A 301 redirect says a page has moved for good; a 302 says the move is temporary. Google treats the 301 target as the page to show.",
    "url": "https://ursy.com/wiki/301-vs-302-redirect/",
    "canonical": "https://ursy.com/wiki/301-vs-302-redirect/",
    "markdown": "https://ursy.com/wiki/301-vs-302-redirect/index.md",
    "json": "https://ursy.com/wiki/301-vs-302-redirect/index.json",
    "published": "2026-11-22T17:38:10+00:00",
    "updated": "2026-11-26T15:41:51+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/301-vs-302-redirect/",
    "headings": [
        {
            "level": 2,
            "text": "What is a redirect?",
            "id": "what-is-a-redirect",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#what-is-a-redirect"
        },
        {
            "level": 2,
            "text": "What is the difference for Google?",
            "id": "what-is-the-difference-for-google",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#what-is-the-difference-for-google"
        },
        {
            "level": 2,
            "text": "Why does it matter for search?",
            "id": "why-does-it-matter-for-search",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#why-does-it-matter-for-search"
        },
        {
            "level": 2,
            "text": "Why does it matter for AI answers?",
            "id": "why-does-it-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#why-does-it-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "Which one should I use?",
            "id": "which-one-should-i-use",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#which-one-should-i-use"
        },
        {
            "level": 2,
            "text": "What about 307, 308 and 303?",
            "id": "what-about-307-308-and-303",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#what-about-307-308-and-303"
        },
        {
            "level": 2,
            "text": "Which kinds of redirect does Google read most reliably?",
            "id": "which-kinds-of-redirect-does-google-read-most-reliably",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#which-kinds-of-redirect-does-google-read-most-reliably"
        },
        {
            "level": 2,
            "text": "What does it look like?",
            "id": "what-does-it-look-like",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#what-does-it-look-like"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#a-worked-example"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#common-mistakes"
        },
        {
            "level": 2,
            "text": "How to check it",
            "id": "how-to-check-it",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#how-to-check-it"
        },
        {
            "level": 2,
            "text": "What URSY.com counts",
            "id": "what-ursy-counts",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#what-ursy-counts"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#questions"
        },
        {
            "level": 3,
            "text": "Does a 301 lose ranking?",
            "id": "does-a-301-lose-ranking",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#does-a-301-lose-ranking"
        },
        {
            "level": 3,
            "text": "Can I change a 302 to a 301 later?",
            "id": "can-i-change-a-302-to-a-301-later",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#can-i-change-a-302-to-a-301-later"
        },
        {
            "level": 3,
            "text": "Is a 308 better than a 301?",
            "id": "is-a-308-better-than-a-301",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#is-a-308-better-than-a-301"
        },
        {
            "level": 3,
            "text": "How long should I keep a 301?",
            "id": "how-long-should-i-keep-a-301",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#how-long-should-i-keep-a-301"
        },
        {
            "level": 3,
            "text": "Does a redirect change my analytics?",
            "id": "does-a-redirect-change-my-analytics",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#does-a-redirect-change-my-analytics"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/#sources"
        }
    ],
    "links": [
        {
            "text": "search engines",
            "url": "https://ursy.com/wiki/search-engine/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "redirect",
            "url": "https://ursy.com/wiki/redirect/",
            "internal": true
        },
        {
            "text": "status code",
            "url": "https://ursy.com/wiki/http-status-code/",
            "internal": true
        },
        {
            "text": "redirections guide",
            "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Redirections",
            "internal": false
        },
        {
            "text": "bots",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "URL",
            "url": "https://ursy.com/wiki/url/",
            "internal": true
        },
        {
            "text": "Google describes redirects",
            "url": "https://developers.google.com/search/docs/crawling-indexing/301-redirects",
            "internal": false
        },
        {
            "text": "HTTP status codes",
            "url": "https://developers.google.com/search/docs/crawling-indexing/http-network-errors",
            "internal": false
        },
        {
            "text": "canonical tag",
            "url": "https://ursy.com/wiki/canonical-tag/",
            "internal": true
        },
        {
            "text": "301 page",
            "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/301",
            "internal": false
        },
        {
            "text": "302 page",
            "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/302",
            "internal": false
        },
        {
            "text": "backlinks",
            "url": "https://ursy.com/wiki/backlinks/",
            "internal": true
        },
        {
            "text": "link juice",
            "url": "https://ursy.com/wiki/link-juice/",
            "internal": true
        },
        {
            "text": "AI crawlers",
            "url": "https://ursy.com/wiki/ai-crawler/",
            "internal": true
        },
        {
            "text": "live fetchers",
            "url": "https://ursy.com/wiki/live-fetcher/",
            "internal": true
        },
        {
            "text": "citation",
            "url": "https://ursy.com/wiki/citation/",
            "internal": true
        },
        {
            "text": "308",
            "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/308",
            "internal": false
        },
        {
            "text": "307",
            "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/307",
            "internal": false
        },
        {
            "text": "JavaScript redirects",
            "url": "https://ursy.com/wiki/javascript-redirect/",
            "internal": true
        },
        {
            "text": "rendering",
            "url": "https://ursy.com/wiki/rendering/",
            "internal": true
        },
        {
            "text": "JavaScript SEO",
            "url": "https://ursy.com/wiki/javascript-seo/",
            "internal": true
        },
        {
            "text": "HTTP",
            "url": "https://ursy.com/wiki/http/",
            "internal": true
        },
        {
            "text": "edge cache",
            "url": "https://ursy.com/wiki/edge-cache/",
            "internal": true
        },
        {
            "text": "internal links",
            "url": "https://ursy.com/wiki/internal-linking/",
            "internal": true
        },
        {
            "text": "XML sitemap",
            "url": "https://ursy.com/wiki/xml-sitemap/",
            "internal": true
        },
        {
            "text": "crawl budget guide",
            "url": "https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget",
            "internal": false
        },
        {
            "text": "crawling",
            "url": "https://ursy.com/wiki/crawling/",
            "internal": true
        },
        {
            "text": "redirect chain",
            "url": "https://ursy.com/wiki/redirect-chain/",
            "internal": true
        },
        {
            "text": "crawl budget",
            "url": "https://ursy.com/wiki/crawl-budget/",
            "internal": true
        },
        {
            "text": "user experience",
            "url": "https://ursy.com/wiki/user-experience-ux/",
            "internal": true
        },
        {
            "text": "site move guide",
            "url": "https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes",
            "internal": false
        },
        {
            "text": "404 or 410",
            "url": "https://ursy.com/wiki/404-and-410/",
            "internal": true
        },
        {
            "text": "soft 404",
            "url": "https://ursy.com/wiki/soft-404/",
            "internal": true
        },
        {
            "text": "Redirect Checker",
            "url": "https://ursy.com/redirect-checker/",
            "internal": true
        },
        {
            "text": "Redirect Checker guide",
            "url": "https://ursy.com/guides/how-to-use-redirect-checker/",
            "internal": true
        },
        {
            "text": "HTTP Header Checker",
            "url": "https://ursy.com/http-header-checker/",
            "internal": true
        },
        {
            "text": "Edge Cache Checker",
            "url": "https://ursy.com/cache-checker/",
            "internal": true
        },
        {
            "text": "Broken Link Checker",
            "url": "https://ursy.com/broken-link-checker/",
            "internal": true
        },
        {
            "text": "broken link",
            "url": "https://ursy.com/wiki/broken-link/",
            "internal": true
        },
        {
            "text": "anchor text",
            "url": "https://ursy.com/wiki/anchor-text/",
            "internal": true
        },
        {
            "text": "XML Sitemap Checker",
            "url": "https://ursy.com/sitemap-checker/",
            "internal": true
        },
        {
            "text": "Canonical Tag Checker",
            "url": "https://ursy.com/canonical-checker/",
            "internal": true
        },
        {
            "text": "indexability checker",
            "url": "https://ursy.com/indexability-checker/",
            "internal": true
        },
        {
            "text": "noindex",
            "url": "https://ursy.com/wiki/noindex/",
            "internal": true
        },
        {
            "text": "robots.txt",
            "url": "https://ursy.com/wiki/robots-txt/",
            "internal": true
        },
        {
            "text": "Robots.txt Checker",
            "url": "https://ursy.com/robots-txt-checker/",
            "internal": true
        },
        {
            "text": "Google Search Console",
            "url": "https://ursy.com/wiki/google-search-console/",
            "internal": true
        },
        {
            "text": "page with redirect",
            "url": "https://ursy.com/wiki/page-with-redirect/",
            "internal": true
        },
        {
            "text": "URL Inspection",
            "url": "https://ursy.com/wiki/url-inspection/",
            "internal": true
        },
        {
            "text": "Compare Two Websites",
            "url": "https://ursy.com/compare-websites/",
            "internal": true
        },
        {
            "text": "SEO Audit",
            "url": "https://ursy.com/seo-audit/",
            "internal": true
        },
        {
            "text": "how to move a website without losing traffic",
            "url": "https://ursy.com/wiki/move-a-website-without-losing-traffic/",
            "internal": true
        },
        {
            "text": "migration redirect mapper",
            "url": "https://ursy.com/pro/migration-redirect-mapper/",
            "internal": true
        },
        {
            "text": "redirect monitor",
            "url": "https://ursy.com/pro/redirect-monitor/",
            "internal": true
        },
        {
            "text": "links-to-redirects fixer",
            "url": "https://ursy.com/pro/links-to-redirects-fixer/",
            "internal": true
        },
        {
            "text": "404 rescue",
            "url": "https://ursy.com/pro/404-rescue/",
            "internal": true
        },
        {
            "text": "methodology",
            "url": "https://ursy.com/methodology/",
            "internal": true
        },
        {
            "text": "UTM parameters",
            "url": "https://ursy.com/wiki/utm-parameters/",
            "internal": true
        },
        {
            "text": "direct traffic",
            "url": "https://ursy.com/wiki/direct-traffic/",
            "internal": true
        },
        {
            "text": "Technical SEO",
            "url": "https://ursy.com/wiki/technical-seo/",
            "internal": true
        }
    ],
    "words": 1670,
    "text": "A 301 redirect tells browsers and search engines that a page has moved for good; a 302 redirect says the move is only temporary. Google uses a permanent redirect as a sign that the new address should be the one shown in results, and does not with a temporary one. If the move will not be reversed, use a 301 (or a 308). If the old page is coming back, use a 302 (or a 307). What is a redirect? A redirect is a server reply that says “this page now lives over there”. It is a status code in the 300s plus a Location header with the new address. The browser follows it without the visitor doing anything. MDN’s redirections guide says users rarely notice one, apart from the small cost of an extra round trip. Search engines, AI crawlers and other bots read the code itself, and the code is what tells them how long the move will last. What is the difference for Google? Codes Type What Google treats as canonical 301, 308 Permanent The new (target) URL 302, 303, 307 Temporary Usually the old (source) URL This is how Google describes redirects. With a temporary redirect, the target can still be indexed if other canonical signals point to it. Google’s page on HTTP status codes puts it another way: a 301 is a “strong” signal that the target should be processed, a 302 or 303 is a “weak” one, a 307 equals a 302 and a 308 equals a 301. See canonical tag for the other signals. Why does it matter for search? The choice decides which address appears in results. A permanent redirect moves the old page’s place to the new one. MDN’s 301 page says search engines attribute links to the original address to the new one, passing the ranking across. Its 302 page says the opposite for a temporary move. So the wrong code can leave your backlinks and link juice pointing at a page you have retired. Why does it matter for AI answers? AI crawlers and live fetchers read the same status codes. An assistant may have learned or cited an old address. The redirect is what connects that citation to your live page. MDN says crawlers update the original address after a permanent redirect, but do not memorise a temporary one. So a permanent move made with a 302 can keep old addresses alive in bots’ records for longer. One clean permanent hop is the safe choice. Which one should I use? Use a permanent, server-side redirect when you are sure the move will not be reversed: a renamed page, two articles merged into one, a move to https. Use a 302 for short-term moves, such as a seasonal page or a page that is out of action for a while. MDN’s examples match: 301 for “reorganization of a website”, 302 when a page “is temporarily unavailable”. If in doubt, ask one question: will the old address ever show its own content again? If not, it is permanent. What about 307, 308 and 303? They fix an old problem with forms. Browsers may turn a POST into a GET after a 301 or 302. 308 is the permanent redirect that keeps the method and body. 307 is the temporary one that does the same. MDN says 307 and 302 behave the same for a GET. 303 sends the visitor to a different page with a GET, which is useful after a form so a refresh does not send it twice. For normal pages, 301 and 302 are fine. Which kinds of redirect does Google read most reliably? Google lists methods by how likely it is to read them correctly: server-side first, then meta refresh, then JavaScript, then a “crypto” redirect, which is a plain link saying “we have moved”. It reads an instant meta refresh as permanent and a delayed one as temporary. JavaScript redirects are the last resort, because Google may never see one if rendering fails. See JavaScript SEO. MDN adds that HTTP redirects run first, before any page is sent. What does it look like? Google’s examples for an Apache server, one permanent and one temporary: Redirect permanent \"/old\" \"https://example.com/new\" Redirect temp \"/two-old\" \"https://example.com/two-new\" And for NGINX: return 301 $scheme://example.com/about/service return 302 $scheme://example.com/about/service This is what a real 301 looks like from the outside, in MDN’s own example. The status line says 301 and the location header gives the new address: HTTP/2 301 cache-control: max-age=2592000,public location: /en-US/docs/Learn_web_development/Core/Scripting/Network_requests content-type: text/plain; charset=utf-8 date: Fri, 19 Jul 2024 12:57:17 GMT content-length: 97 Moved Permanently. Redirecting to /en-US/docs/Learn_web_development/Core/Scripting/Network_requests Note the cache-control line: a redirect can be cached at the edge cache like any other reply. A worked example A bike shop renames its page /helmets.html to /helmets/ for good, and runs a winter sale page for six weeks. Old address Goes to Code Why /helmets.html /helmets/ 301 Renamed for good /sale/ /winter-sale/ 302 The normal sale page returns in spring /contact-form (POST) /contact/ 308 Permanent, and the form data must survive The shop then changes its menus, internal links and XML sitemap to /helmets/, so most visits need no redirect at all. Common mistakes A 302 for a move that is for good. Google then usually keeps the old address as the canonical, so the new one may not take its place in results. Chains of redirects. An old http address goes to https, then to the www version, then to the new slug: three hops where one would do. Google’s crawlers follow up to 10 hops by default. Its crawl budget guide warns that long chains hurt crawling. Point every old address straight at the final one. See redirect chain and crawl budget. A delayed meta refresh (“you will be taken to our new page in 5 seconds”). Google reads it as temporary, so use a server redirect if the move is permanent. Loops. MDN says loops completely break the user experience. The server may send a 500 error, or the browser shows its own. Removing redirects too soon. For a site move, Google’s site move guide says keep them generally at least 1 year, and for people, consider keeping them for good. Redirecting everything to the home page. Send each old page to its closest new match. If there is none, a 404 or 410 is honest; a page that says “not found” but returns 200 is a soft 404. How to check it Paste the old address into our free Redirect Checker. It shows every hop, whether each is a 301 or a 302, and any loop. The Redirect Checker guide explains the results. Try all four forms of your home page: http and https, with and without www. Each should reach the final address in one permanent hop. Read the raw reply, including the Location and cache headers, with the HTTP Header Checker. The Edge Cache Checker will show if the redirect itself is cached. Find links on your pages that still point at old addresses with the Broken Link Checker, then change them to the final address. See broken link and anchor text. Make sure your sitemap lists only final addresses with the XML Sitemap Checker. Check that the final page’s canonical names itself with the Canonical Tag Checker, and that it can be indexed with the indexability checker. See noindex. Check that robots.txt does not block the new address, with the Robots.txt Checker. In Google Search Console, old addresses show as page with redirect, which is normal. Use URL Inspection on the new address. Google notes its inspection tools do not follow redirects, so inspect the final page, not the old one. Compare your setup with a rival’s in Compare Two Websites, or run the SEO Audit across 100 pages. Planning a bigger move? Read how to move a website without losing traffic. The migration redirect mapper, redirect monitor, links-to-redirects fixer and 404 rescue are in URSY Pro, opening in stages. What URSY.com counts We record every request with its status code, from both the edge log and the origin. So a redirect shows up as its own request, a 301 or a 302, followed by the request for the next address. A bot that follows two hops makes three requests for one page; we count reads, not pages. Edge figures for the last hour are incomplete, because the edge log arrives about 8 to 10 minutes late. See our methodology. Questions Does a 301 lose ranking? Google treats a 301 as a strong signal that the new address should be canonical. Expect some movement during a move: Google’s site move guide says rankings fluctuate for a while, then settle. Can I change a 302 to a 301 later? Yes. Once you know the move is for good, switch it. Google will then treat the target as the canonical. Is a 308 better than a 301? Google treats them the same. A 308 also keeps a form’s method and body, so it is the safer permanent code for anything that is not a plain page view. How long should I keep a 301? For a site move, Google says generally at least one year. Keeping it longer costs little and helps anyone with an old link. Does a redirect change my analytics? It can. A rule that sends every old address to one fixed new address drops anything after the question mark, including UTM parameters. Then the visit loses its campaign and may look like direct traffic. Test a tagged link from end to end. Related words Redirect Redirect chain Page with redirect Canonical tag HTTP status code 404 and 410 How to move a website without losing traffic Technical SEO Sources Google Search Central: Redirects and Google Search, checked 24 November 2026 Google Search Central: How HTTP status codes, and network and DNS errors affect Google Search, checked 24 November 2026 Google Search Central: Crawl budget management for large sites, checked 24 November 2026 Google Search Central: Site moves with URL changes, checked 24 November 2026 MDN: 301 Moved Permanently, checked 24 November 2026 MDN: 302 Found, checked 24 November 2026 MDN: 307 Temporary Redirect, checked 24 November 2026 MDN: 308 Permanent Redirect, checked 24 November 2026 MDN: Redirections in HTTP, checked 24 November 2026 Updated 24 November 2026 by URSY.com.",
    "source": "https://ursy.com/wiki/301-vs-302-redirect/"
}