Neova고급 SEO 플랫폼

링크 href의 URL 안에 공백이 있음

Neova에서는 크롤링 자체에서 실행됩니다. 따로 설정할 것이 없습니다.

규칙 최종 검토: 2026년 10월 17일 · 가이드 업데이트: 2026년 7월 7일

공백은 유효한 URL 문자가 아니므로, 브라우저와 크롤러가 인코딩해야 합니다. 코드 정리 차원의 문제입니다. 앞뒤 공백은 HTML이 허용하므로 플래그를 지정하지 않습니다.

해 볼 수 있는 조치

공백을 %20으로 인코딩하거나, URL 이름을 하이픈을 쓰도록 바꾸고 링크를 업데이트하세요.

Neova가 플래그를 지정하는 이유

  • RFC 3986에서 공백은 유효한 URL 문자가 아니므로, 브라우저와 크롤러가 인코딩해야 하며 그 방식이 서로 다를 수 있습니다.
  • 인코딩이 다르면 한 페이지에 URL 2개가 생길 수 있고, 이메일에 복사한 링크는 공백에서 끊기는 경우가 많습니다.
  • 정리 차원의 문제이며, 이에 관한 검색엔진 규칙은 없습니다.

출처

전체 가이드

이 부분은 현재 영어로만 제공됩니다.

TL;DR: A stray space, tab, or line break inside an href can silently rewrite a URL, encode it to something that 404s, or split link equity between two "different" URLs. Trim every href to a clean value and fix the template or paste habit that let the whitespace in.

What This Check Flags

This fires when an outgoing anchor's href holds a whitespace character, a space, tab, or newline, at the start, the end, or in the middle of the URL. So the link reads href=" /products/widget " instead of href="https://example.com/products/widget". The character is invisible in the rendered page but very real in the source, and it changes how browsers, servers, and crawlers interpret the target. Sitebulb and Screaming Frog surface it because that ambiguity is exactly what you want out of your internal linking: a URL should mean one thing, not "maybe this, maybe the encoded version."

How Whitespace Breaks a URL

A URL is meant to be a clean ASCII string, and a literal space is not valid inside one. When whitespace survives into a request, something has to deal with it, and that something is not consistent across environments.

Whitespace Position What Tends to Happen Result
Leading (before the URL) Most browsers trim it; some crawlers do not Two URLs seen as distinct; equity split
Trailing (after the URL) Usually trimmed, inconsistently Occasional duplicate-URL crawling
Internal (mid-URL space) Encoded to %20 per the HTML spec /my page requests /my%20page → 404
Tab or newline in a path Stripped or encoded unpredictably Broken link on some devices, works on others

A Real Failing Snippet, and the Fix

The nastiest version is an internal space, because it turns into %20 and points at a URL that does not exist:

<!-- Fails: internal space encodes to %20 -->
<a href="https://example.com/case studies/acme/">Read the Acme case study</a>

<!-- Fails: trailing space from a paste -->
<a href="https://example.com/pricing/ ">See pricing</a>

The first requests /case%20studies/acme/; if the real path is /case-studies/acme/, that is a 404. The second may be treated as a separate URL from /pricing/ by a strict crawler. Both fixes are the same, trim to a clean value:

<!-- Fixed -->
<a href="https://example.com/case-studies/acme/">Read the Acme case study</a>
<a href="https://example.com/pricing/">See pricing</a>

If a path genuinely needs to represent a space, use a hyphen in the slug (best) or an intentional %20, never a raw space in the markup.

Where the Whitespace Comes From

Nobody types a trailing space into a link on purpose. The usual sources are worth knowing because the fix is at the source, not the page:

  1. CMS link fields. An editor pastes a URL into a WordPress link box and a trailing space rides along, invisible in the visual editor.
  2. Copy-paste from documents. URLs copied out of Word, PDFs, or chat apps often carry leading or trailing whitespace and even non-breaking spaces.
  3. Template concatenation. A theme builds an href by joining a base and a slug variable, and one of them has an untrimmed space, so every page using that template inherits it.

How to Detect It

  1. Screaming Frog. Crawl, then use Custom Extraction or export All Outlinks and scan the destination column for values that contain %20 where you did not expect it, or that fail to match a known clean URL. Frog will also report the resulting 404s directly.
  2. Browser DevTools. Inspect a suspect link and read the href in the Elements panel; select the attribute value and you will see the leading or trailing space highlighted. The Network tab shows the actual request path, revealing any %20.
  3. View Source. Search the raw HTML for href=" (quote followed by a space) and for spaces before the closing quote. Those literal patterns catch leading and trailing whitespace fast.

How to Fix It

  1. Identify whether the whitespace is per-page (data entry) or site-wide (template). Template issues are the priority since one fix clears many URLs.
  2. For data-entry cases, re-open the link in the CMS and retype or carefully re-paste the URL, then confirm no space survives at either end.
  3. For template cases, add a trim to the variable that builds the href so no future entry can reintroduce the space.
  4. Where a slug needs a space, rename it to use a hyphen and set up a redirect from the old path if it was ever live.
  5. Re-crawl and confirm the flagged hrefs are clean and the associated 404s are gone.

Frequently Asked Questions

Browsers Trim the Space Anyway, so Does It Really Matter?

Browsers usually trim leading and trailing whitespace, but not identically, and they do not trim an internal space, they encode it to %20. A link that loads in your browser can 404 for a crawler or a user on another device, so the safe move is a clean href.

Will a Whitespace href Hurt My Rankings?

Indirectly. It can create 404s on internal links and cause a crawler to treat the trimmed and untrimmed targets as two URLs, splitting or dissipating the link equity that should have gone to one page. Neither is fatal, but both waste signal you already earned.

Is %20 in a URL Always Wrong?

No. A deliberate %20 is valid encoding. The problem is a raw space in your markup that gets encoded by accident and points at a path that does not exist. If your real URLs use hyphens, an unexpected %20 is the tell.

How Do I Stop It Recurring?

Trim href values in the template or a save hook so any pasted whitespace is stripped before it is stored, and train editors to paste as plain text. That fixes the source rather than chasing individual pages.

Whitespace-driven 404s belong to the broader how to find and fix broken links workflow, and the equity-splitting angle connects to the Link Equity glossary entry. For other malformed targets see Has Link to Non-HTTP Protocol and Link to Local Path. To keep your internal links clean at the architecture level, work through the Internal Linking Complete Guide.

내 사이트에서 찾아보기

Neova는 크롤링할 때마다 이 점검과 다른 모든 점검을 실행하고, 수정 방법을 팀을 위한 티켓으로 작성합니다.

  • Mac, Windows, Linux용 데스크톱 앱
  • 출처가 함께 있는 696개 점검 전체
  • Search Console과 Analytics 4를 읽기 전용으로 연결
  • Jira, Linear, Asana로 티켓 보내기

Neova 다운로드 Desktop Free 플랜 또는 Solo 14일 무료, 카드 불필요.

링크 점검 전체 · 가이드 · 점검 라이브러리

작성: Neova Labs · 점검 라이브러리로 돌아가기