Follow and analyze redirect chains. Trace 301, 302, 307, 308 redirects and detect redirect loops.
Enter a URL to trace its redirect chain and detect loops
HTTP redirects are server responses that instruct browsers to navigate to a different URL than the one originally requested. When a server sends a 3xx status code along with a Location header, the browser automatically follows the redirect to the new destination. This happens transparently to users—they simply end up at the final URL.
Redirects are fundamental to how the web works. They enable site migrations, URL restructuring, HTTPS enforcement, vanity URLs, and countless other use cases. However, improper redirect implementation can harm SEO rankings, slow down page loads, and create frustrating user experiences.
Preserve SEO value when changing URLs or domains
Redirect HTTP traffic to secure HTTPS
Consolidate www and non-www versions
Route users to region-specific content
Not all redirects are equal. The HTTP status code determines how browsers and search engines interpret and handle the redirect. Using the wrong code can cause SEO problems or unexpected behavior.
| Code | Name | Type | SEO Effect | Use Case |
|---|---|---|---|---|
| 301 | Moved Permanently | Permanent | Passes ~90-99% of link equity to new URL. Search engines update their index. | URL changes, site migrations, domain changes |
| 302 | Found | Temporary | Original URL keeps its rankings. New URL not indexed. | A/B testing, temporary maintenance, geo-redirects |
| 303 | See Other | Temporary | Similar to 302. Forces GET request to new URL. | After form POST submissions (Post/Redirect/Get pattern) |
| 307 | Temporary Redirect | Temporary | Same as 302, but preserves HTTP method (POST stays POST). | API redirects, when method preservation matters |
| 308 | Permanent Redirect | Permanent | Same as 301, but preserves HTTP method. | Permanent API endpoint changes |
301 = "This page has permanently moved. Update your bookmarks and search indexes."
302 = "This page is temporarily somewhere else. Keep the original URL in your records."
A redirect chain occurs when one redirect leads to another, which leads to another. While sometimes unavoidable, long chains hurt performance and SEO.
Example of a redirect chain:
http://site.com/page ↓ 301 redirect https://site.com/page ↓ 301 redirect https://www.site.com/page ↓ 301 redirect https://www.site.com/new-page
Problems:
Example of a redirect loop:
https://site.com/page-a ↓ 301 redirect https://site.com/page-b ↓ 301 redirect https://site.com/page-a ← Back to start!
Common causes:
Google recommends redirect chains of 3 or fewer hops. Ideally, update all old links to point directly to the final destination URL rather than relying on chains.
Redirects are powerful SEO tools when used correctly, but they can also damage rankings when misused.
There are several ways to implement redirects depending on your server and platform.
Single page redirect:
Redirect 301 /old-page https://example.com/new-page
Regex-based redirect:
RewriteEngine On
RewriteRule ^old-directory/(.*)$ /new-directory/$1 [R=301,L]
HTTP to HTTPS:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Single page redirect:
location = /old-page {
return 301 https://example.com/new-page;
}
Regex-based redirect:
location ~ ^/old-directory/(.*)$ {
return 301 /new-directory/$1;
}
HTTP to HTTPS:
server {
listen 80;
return 301 https://$host$request_uri;
}
<?php
// 301 Permanent Redirect
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://example.com/new-page");
exit();
// 302 Temporary Redirect
header("Location: https://example.com/temp-page");
exit();
?>
// Immediate redirect
window.location.href = "https://example.com/new-page";
// Or using replace (no back button)
window.location.replace("https://example.com/new-page");
| Scenario | Redirect Type | From | To |
|---|---|---|---|
| HTTP to HTTPS | 301 | http://example.com/* |
https://example.com/* |
| Non-www to www | 301 | https://example.com/* |
https://www.example.com/* |
| Remove trailing slash | 301 | /page/ |
/page |
| Domain change | 301 | oldsite.com/* |
newsite.com/* |
| Page renamed | 301 | /old-page-name |
/new-page-name |
| Maintenance mode | 302 | /shop/* |
/maintenance |
| Geo redirect | 302 | example.com |
example.de (for German IPs) |
| Mobile redirect | 302 | example.com |
m.example.com |
Cause: Browser detected a redirect loop and stopped following.
Solutions:
Possible causes:
Possible causes:
Recently analyzed URLs
| Original URL | Final URL | Redirects | Status | Checked |
|---|---|---|---|---|
| allcitymenu.com | allcitymenu.com | 0 | OK | Apr 29, 2026 11:37 |
Use our full suite of tools to analyze and optimize your website: