Test 301 Redirect Setup: How to Confirm It's Actually Working
You just renamed a page, moved a blog to a new domain, or followed a plugin's redirect setting, and now you want to test 301 redirect behavior before you trust it. Clicking the old link and landing on the new page feels like proof. It isn't. A browser can show you the right destination while the server underneath is quietly sending the wrong status code, or caching an answer from before you fixed anything.
This walkthrough gives you three separate ways to check a 301 redirect, in order of how much they actually prove, so you finish knowing rather than hoping.
Why Clicking the Link Isn't Proof It Worked
Here's the part nobody tells beginners: your browser's address bar never shows you a status code. It shows you a URL. A 301 (permanent redirect), a 302 or 307 (temporary redirect), a meta refresh tag, and even a bit of JavaScript that changes the page location can all land a human on the exact same final page and look identical from the driver's seat.
According to MDN's HTTP status reference, a 301 tells the browser to automatically request the resource at the new URL and tells search engines to attribute the old page's links and ranking signals to the new one. That second part, the search engine behavior, is invisible to a person clicking a link. You need to look at the actual response, not the page it eventually renders.
What you need before you start
- The old URL (the one that should redirect) and the new URL it should land on.
- A desktop browser with developer tools: Chrome, Firefox, Edge, and Safari all include this for free.
- Optional: a terminal or command prompt, if you want to run the curl test yourself. If that sounds intimidating, skip straight to the checker tool method near the end; it does the same job without any typing.
- About five minutes.
How to test a 301 redirect in three layers
Think of these three layers like checking a package delivery: layer one is glancing at the tracking app, layer two is opening the box to see what's actually inside, and layer three is making sure you're not looking at yesterday's tracking update by mistake. Each layer catches something the one before it can miss.
Layer one: read the real status code in your browser's DevTools
- Open your browser and press F12 (or right-click the page and choose "Inspect"), then click the "Network" tab. You should see an empty or mostly empty panel waiting to record activity. If nothing appears, make sure the Network tab is actually selected and not "Elements" or "Console."
- Type the old URL into the address bar and press Enter. You should see a new row appear at the top of the Network panel almost immediately. If the panel stays empty, the recording toggle may be paused; look for a red or grey circle icon near the top-left of the panel and click it to start recording, then reload.
- Click on the very first request in the list, the one matching your old URL. A details panel should open on the right or below showing "Headers." If you see a request for a different file (an image or a script) instead, scroll up; the page request is almost always the first one listed.
- Look at the "Status Code" line under "General" or "Headers." You want to see "301" written there. If you see "302," "307," or "308" instead, the redirect exists but isn't permanent, which matters for search engines even though it looks the same to you.
- Scroll to "Response Headers" and find "Location." This should show the new URL exactly as you intended. A typo here, an extra slash, or the wrong subdomain is a common way a redirect quietly points somewhere it shouldn't.
If step four shows 301 and step five shows the correct Location value, your redirect passed the first check. That's a good sign, but browsers can still fool you here through caching, which is exactly what layer three deals with.
Layer two: check the raw headers with curl (or a checker tool)
DevTools shows you what your specific browser received. curl is a command-line tool that makes a raw HTTP request and shows you the response headers with nothing else involved: no cache, no cookies, no browser quirks. It's the same basic technique a search engine crawler or an automated redirect checker uses.
- Open a terminal (Terminal on Mac, Command Prompt or PowerShell on Windows) and run
curl -I https://your-old-url.com, replacing the URL with your actual old page. You should see a block of text starting with something likeHTTP/1.1 301 Moved Permanently. If you get "command not found," your system doesn't have curl installed by default; skip to the checker tool option below instead of troubleshooting an install. - Find the "location:" line in that output. It should contain your new URL, exactly. If the location header is missing entirely, the server returned a 301 status without telling the browser where to go, which is a broken redirect even though it reports the right code.
- Run
curl -sIL https://your-old-url.comto follow the entire chain instead of stopping at the first hop. You should see one 301 block followed by a final 200 (OK) block for the destination page. If you see a second or third redirect before reaching 200, you have a redirect chain, which is worth fixing even when it technically still works.
If reading raw HTTP headers is new to you, our guide to curl headers walks through every flag and what each header in the response actually means.
curl -I https://example.com/old-page
HTTP/1.1 301 Moved Permanently
location: https://example.com/new-page
content-type: text/html; charset=UTF-8
No terminal, no interest in typing commands? A browser-based redirect checker runs this exact same curl-style request from a server and shows you the hop-by-hop status and headers in a readable report, which is the fastest way to check a 301 redirect if the command line isn't your thing.
Layer three: rule out your browser's cache
This is the step that causes most of the confusion beginners run into, and it goes both directions. Someone fixes a broken redirect, tests it in their normal browser, and it still looks broken, so they assume the fix didn't take. Someone else tests a redirect that's actually still broken, it happens to work because of a stale cached entry from before, and they declare victory too early.
- Open a private or incognito window (Ctrl+Shift+N in Chrome, Ctrl+Shift+P in Firefox) and visit the old URL. You should see the same result as your curl test. If the incognito result matches curl but your normal browser window shows something different, the server is fine and your browser's cache is the one lying to you.
- If you need to test in your regular window, don't rely on a plain refresh or even Ctrl+Shift+R. Open DevTools' Network tab, right-click the reload button, and choose "Empty Cache and Hard Reload." You should now see the current, correct response. If the old redirect still appears after that, clear your browsing data for that site specifically rather than the whole browser.
- As a last resort, visit
chrome://net-internals/#hstsin Chrome and check whether the domain has an HSTS entry forcing HTTPS from a previous configuration. This is a narrow, specific fix; only chase it if you've ruled out the ordinary cache first.
Why your browser and curl might disagree
This isn't a bug in your browser, and it isn't a sign something is broken. Per RFC 9110, the HTTP specification, a 301 response is heuristically cacheable by default. That means a server doesn't need to send any special caching instructions for a browser to be allowed to remember a 301 indefinitely. Once your browser has stored that redirect, it can keep reusing its own memory of it rather than asking the server again, sometimes for a very long time.
curl doesn't carry that memory forward between separate runs the way a browser does across browsing sessions, which is why it gives you a cleaner second opinion when your browser's answer seems questionable. If your browser and curl genuinely disagree after a proper cache clear, trust curl (or a checker tool built the same way); it's talking to the server directly every single time.
Confirm it's actually a 301, not a look-alike
"The URL changed" and "it's a 301" are not the same claim. Here's a quick reference for what you might actually be looking at:
| Response | What It Means |
|---|---|
| 301 Moved Permanently | Permanent move; search engines transfer ranking signals to the new URL. |
| 302 / 307 Found / Temporary Redirect | Temporary; search engines generally keep indexing the original URL. |
| Meta refresh / JavaScript redirect | Handled by the page itself, not the server; crawlers may not follow it the same way at all. |
If your redirect turns out to be a 302 when you meant it as permanent, that's a common misconfiguration in plugins and page builders that default to temporary redirects. Our sister site htaccess.tools has a deeper breakdown of 301 versus 302 redirects if you want the full comparison and how to write the correct rule server-side.
Does it preserve what matters
Two things beyond the status code are easy to miss on a quick test. First, count the hops. A single 301 straight to the destination is healthy; a chain of two or three redirects stacked together adds delay and is worth flattening even when the final result is correct.
If the chain never resolves at all and the browser just keeps bouncing between the same URLs, you're looking at a redirect loop rather than a working 301; our guide to fixing a redirect loop covers that failure mode specifically. Our own guide to HTTP status codes covers how to read a full chain if you want more detail on that.
Second, if the redirected page involves a form submission or an API request (think a checkout step or a contact form), a 301 carries a documented side effect worth knowing about. Per the Fetch Standard, a 301 response to a POST request causes the browser to switch the retry to a GET request, which can silently drop the submitted data. If that's your situation, a 308 redirect preserves the original method and body instead, and it's worth asking whoever manages your server or plugin to use that code specifically.
Does it pass the SEO value you think it does
Google has explained that it can pass ranking signals through a 301 redirect by using it to choose a canonical URL and consolidate signals there, as reported by Search Engine Journal's recap of Google's Search Central commentary. The catch is that this only works cleanly when the destination is a genuine, equivalent replacement for the old page. Point a 301 at your homepage instead of the actual matching content, and Google's indexing system can treat it as a soft 404, a case where the redirect exists but doesn't meaningfully deliver what the old URL promised, and pass little or no value at all.
A working 301, in other words, isn't just about the status code being correct. It also needs to land somewhere that genuinely replaces what was there before.
The fastest way: paste the URL into a 301 redirect checker
Once you understand what curl and DevTools are showing you, a dedicated checker tool is the version you'll actually reach for day to day. Paste your URL into httpcheck.tools and the report gives you the hop-by-hop status codes, the Location header at each step, and the final destination, all without touching your browser's cache. It's the same underlying technique as the curl commands above, run fresh from a server every time you check a 301 redirect, which is exactly why it makes a reliable second opinion when your own browser feels ambiguous. Check the about page for what each part of the report measures, and if you're confirming redirects across an entire migrated site rather than one page, the bulk mode handles up to 25 URLs in a single pass.
Frequently Asked Questions
How do I test if a 301 redirect works?
Check it in three layers: open your browser's DevTools Network tab and confirm the status code reads 301 with the correct Location header, then run curl -I on the old URL from a terminal (or paste it into a redirect checker) to see the raw response without any browser involved, and finally retest in an incognito window to rule out a cached result skewing either answer.
Why is my 301 redirect not working?
The three most common causes are a plugin or server rule sending a 302 instead of a 301 by default, a typo or wrong path in the Location header sending visitors somewhere other than intended, and browser cache serving up an old result from before the redirect was fixed, which makes a genuinely working redirect look broken to the one person testing it.
Does a 301 redirect pass link equity?
Generally yes: Google has said it can pass ranking signals through a 301 by treating the new URL as the canonical destination for the old page's links. That only holds cleanly when the destination genuinely matches the old content; a 301 pointed at an unrelated page can be treated as a soft 404 and pass little or no value.
How do I check a redirect without my browser cache interfering?
Use a method that never touches your browser's stored history of the URL: an incognito or private window, the curl -I command from a terminal, or a server-side redirect checker tool. All three make a fresh request to the server every time, so a stale cached redirect in your everyday browser can't distort the result either way.