Neova高级 SEO 平台

内部 URL 重定向到自身

在 Neova 中 直接在抓取过程中运行,无需任何设置。

规则最近审核:2026年10月17日 · 指南更新:2026年7月1日

该 URL 返回的重定向目标就是它自己,因此爬虫和访客永远到达不了任何内容。

您可以做什么

修正重定向规则,让它指向正确的最终 URL;或删除该规则,以 200 返回内容。

Neova 如何发现

Neova 请求每个地址,并读取服务器的响应。

Neova 为何标记

  • 重定向到自身的 URL 永远不会返回内容,浏览器在反复尝试后会显示错误。
  • Google 的爬虫最多跟随 10 跳重定向就会放弃,所以该 URL 无法被索引。
  • 这通常来自配置错误的规则,例如 HTTPS 或末尾斜杠的改写规则。

来源

生成的工单

这一部分目前只有英文版。

RE-009 · Internal URL Redirects to Itself

How to Check the Fix: 1. Run the check again in Neova
2. Spot-check sample URLs across affected templates
3. Record the re-check date and period label next to the baseline

Neova writes this ticket for every affected page group and sends it to Jira, Linear, Asana and the rest, after you approve it.

完整指南

这一部分目前只有英文版。

TL;DR: A self redirect is a URL that redirects to itself. The browser or crawler asks for a page, the server sends it right back to the exact same address, and the loop repeats until the client gives up. The page never loads, and search engines drop it. It is almost always a misconfigured rule, and the fix is to remove or correct that rule.
Check ID
RE-018
Type
Redirect
Severity
Critical
Result
Page dead
Fix effort
Low

What a Self Redirect Is

A self redirect happens when a URL responds with a 3xx status and a Location header that points back to the same URL it was just requested at. Request /pricing/, get a 301 to /pricing/, request /pricing/ again, get the same 301, and so on. Browsers cut this off after a handful of hops and show "too many redirects" (in Chrome, ERR_TOO_MANY_REDIRECTS). Crawlers do the same and simply mark the URL as unreachable.

It is worth being precise about "same URL," because that is where these bugs hide. A redirect from http://site.com/x to https://site.com/x is not a self redirect, it is a valid protocol upgrade. A redirect from /x to /x/ is a trailing-slash canonical, also fine. A true self redirect lands on the byte-for-byte identical URL: same scheme, same host, same path, same casing, same query. If the destination equals the source, the loop can never resolve.

Why It Is One of the Worst Redirect Bugs

Most redirect problems are about efficiency. This one is about availability. A self-redirecting URL does not load for anyone. Real visitors hit a dead end, so you lose the traffic and any conversion that page was carrying. Googlebot follows the redirect, comes back to the same URL, and after enough hops treats it as an error; the page falls out of the index and takes its rankings with it. If the loop is on a template that powers thousands of URLs, you can knock a whole section of the site offline in one bad deploy.

It also lies to you in monitoring. A self redirect returns a 3xx, not a 5xx, so naive uptime checks that only alarm on 500s will report the site as "up" while every affected page is unusable. I have watched a team stare at a green status dashboard while their top landing page returned nothing but redirect loops. So the honest severity here is critical, even though the fix is usually a two-line change.

The Loop, Drawn Out

Browser GET /pricing/ /pricing/ 301 to /pricing/ request 301 back to same URL loop repeats until ERR_TOO_MANY_REDIRECTS

How to Detect It

  • curl: the fastest single check. Run curl -sIL https://example.com/page/ and watch the trail. If you see the same URL return a 3xx to itself over and over, or curl bails with "Maximum redirects followed," you have a loop.
  • Screaming Frog: crawl, open the Response Codes tab, and look at the "Redirect Loop" filter and the "Redirect URL" column. When the redirect target equals the address, it is a self redirect. Frog also flags loops outright.
  • Chrome DevTools: load the page, and if it fails with ERR_TOO_MANY_REDIRECTS, the Network tab shows the same URL repeating with 3xx status rows.
  • Google Search Console: the Pages report buckets these under "Page with redirect" or as crawl errors, and URL Inspection will show the redirect it followed.
  • Server logs: a spike of 3xx responses on one path from the same client in quick succession is a loop signature.

Common Causes and Fixes

Cause Why It Loops Fix
Force-HTTPS behind a proxy App sees http from the proxy, redirects to https, proxy strips it again Honor X-Forwarded-Proto so the app knows the request is already https
Duplicate canonical rules Two rules each redirect to what the other undoes Keep one canonical rule; remove the conflicting one
Redirect map with an identity row A row maps a URL to itself Delete rows where source equals destination
Trailing-slash rule misfire Rule adds and removes the slash on the same request Pick one form and redirect only the other to it
CDN and origin disagree Both add their own redirect and bounce the request Set the canonical redirect in one layer only

How to Fix It, Step by Step

  1. Reproduce it with curl -sIL so you can read the exact hop chain and confirm the destination equals the source.
  2. Find the layer doing the redirect. Work down the stack: CDN or edge rules, then web server config (.htaccess, nginx rewrite), then the application or CMS redirect table, then any plugin.
  3. Identify the rule whose target resolves back to the request URL. In a proxy-HTTPS setup this is usually a force-HTTPS block that ignores X-Forwarded-Proto.
  4. Correct or remove that rule. If a redirect map contains a row where source and destination match, delete the row. If two rules conflict, keep the one that reflects your true canonical and drop the other.
  5. Deploy, purge CDN and page caches, then re-run the curl check. You want a clean 200, or a single legitimate redirect to a genuinely different URL that then returns 200.
  6. Once the page loads, request re-indexing in Search Console for the affected URLs so Google recrawls and restores them.

Do and Do Not

DO

  • Confirm the loop with curl before touching config.
  • Honor X-Forwarded-Proto behind a load balancer or CDN.
  • Keep exactly one canonical redirect per rule set.
  • Delete any redirect-map row where source equals destination.
  • Re-request indexing once the page loads again.
DON'T

  • Stack force-HTTPS in both the CDN and the app.
  • Add a redirect that targets its own source URL.
  • Run conflicting slash rules that fight each other.
  • Trust an uptime check that only alarms on 5xx.
  • Assume it is fixed before purging every cache.

What Good Looks Like

A curl -sIL on the URL returns a single 200, or one clean redirect to a different, correct URL that itself returns 200. No repeated addresses in the chain. The page renders in the browser, Search Console shows it as indexed rather than "page with redirect," and your traffic to it recovers. That is the whole bar. Self redirects are almost never subtle once you look; the trick is looking before a green dashboard convinces you nothing is wrong.

FAQ

Is a Self Redirect the Same as a Redirect Loop?
A self redirect is the simplest kind of redirect loop, where a URL points straight back to itself. A loop can also be a longer chain, A to B to A, that never resolves. Both fail the same way for the user, and both are detected the same way.
Why Does My Site Show a Loop Only in Production?
Usually the CDN or load balancer. Locally there is no proxy, so a force-HTTPS rule behaves. In production the proxy terminates TLS and forwards the request as http, and if your app does not read X-Forwarded-Proto it keeps redirecting to https forever.
Does the Redirect Type, 301 vs 302, Matter Here?
Not for the loop. Whether it is a 301, 302, 307, or 308, if it targets its own URL the request never completes. The status code only matters once you have a valid, different destination.
Will Google Deindex a Self-Redirecting Page?
Yes, over time. Googlebot cannot fetch content it can never reach, so it stops treating the URL as a live page and drops it from the index. Fix the loop and request re-indexing to recover.
How Do I Stop This From Happening on the Next Deploy?
Add a curl-based redirect check to your deploy pipeline that fails the build if any key URL returns more than one hop or loops. It takes minutes to write and catches the whole class of bug before users do.
Pages stuck in a redirect loop?
An advanced SEO audit finds every self redirect and loop across your stack and pinpoints the exact rule causing it.

在您自己的网站上找到它

Neova 在每次抓取时都会运行此检查项和其他所有检查项,然后把修复方法写成工单交给您的团队。

  • 适用于 Mac、Windows 和 Linux 的桌面应用
  • 全部 696 项检查,每项都附来源
  • Search Console 和 Analytics 4,以只读方式连接
  • 工单发送到 Jira、Linear 和 Asana

下载 Neova Desktop Free 套餐,或免费试用 Solo 14 天,无需银行卡。

全部重定向检查 · 指南 · 检查项库

作者:Neova Labs · 返回检查项库