rel="alternate": Điều gì Điều này Làm và Khi nào nên Dùng Điều này

rel="alternate" là một HTML link relation với several unrelated SEO jobs — hreflang language variants, RSS/Atom feed phát hiện, và legacy mobile/AMP alternates. Mà job bạn là đang làm decides mà các thuộc tính belong tiếp theo để điều này, và mà of những vẫn quan trọng trong 2026.

Xuất bản lần đầu: 2 thg 7, 2026 · Cập nhật lần cuối: 8 thg 8, 2026 · Advanced
Ngôn ngữ

rel="alternate" là một chung-purpose HTML link relation với several unconnected SEO jobs, và đó thuộc tính tiếp theo để điều này decides mà job: hreflang cho language/region variants (đó một đó matters hầu hết hôm nay), loại="application/rss+xml" _(bản dịch)_ «application/rss+xml» cho RSS/Atom feed autodiscovery, và media cho một tách biệt mobile URL (legacy). MỘT close cousin, rel="amphtml", points để an AMP trang. Three of những four — hreflang, mobile-alternate, và AMP — cần đó mối quan hệ declared từ cả hai ends (reciprocal pairing); RSS/Atom feed autodiscovery là đó exception và hoạt động một-way, không trả về link bắt buộc. None of them là một xếp hạng lever hoặc một bảo đảm đó một trang nhận được crawl, được lập chỉ mục, hoặc consolidated: hreflang routes đó right variant để đó right searcher, feed links aid phát hiện, và AMP lost của nó special treatment trong 2021 (Google ended bộ nhớ đệm-phân phối AMP các trang trong Tìm kiếm on July 1, 2026). Think of rel="alternate" as một routing/consolidation hint đó says "these different URLs are intentional relatives, not accidental duplicates" _(bản dịch)_ «những khác nhau URLs là intentional relatives, không accidental duplicates» — không một directive các công cụ tìm kiếm phải follow.

Tóm tắt — rel="alternate" là WHATWG-được định nghĩa “alternate” link relation, và của nó meaning là đặt hoàn toàn by thuộc tính paired với nó: hreflang → language/region variant (hiện tại, cao-giá trị — đầy đủ rules trong hreflang hướng dẫn); type="application/rss+xml" / "application/atom+xml" → feed autodiscovery (hiện tại, niche, phát hiện-chỉ); media → tách biệt-mobile-URL variant (legacy — responsive design là Google default hiện tại). related nhưng distinct tag, rel="amphtml", points canonical trang tại của nó AMP version. throughline là đó mỗi alternate mối quan hệ có của nó own syntax và validation rules — three của four (hreflang, mobile-alternate, AMP) require reciprocal pairing từ cả hai ends; RSS/Atom feed autodiscovery không. None của những điều này là xếp hạng lever, và none bảo đảm crawling, lập chỉ mục, hoặc consolidation; rel="alternate" là fundamentally routing hoặc phát hiện hint, không directive.

Evidence for this claim HTML link rel=alternate indicates an alternate representation, such as another language or feed, with semantics refined by attributes like hreflang and type. Scope: HTML alternate link relation. Confidence: high · Verified: WHATWG HTML: Link type alternate Evidence for this claim Google uses rel=alternate hreflang for localized URL alternates when annotations are valid and reciprocal; it does not consolidate them like rel=canonical. Scope: Current Google hreflang behavior. Confidence: high · Verified: Google Search Central: Localized versions

Điều gì rel="alternate" thực ra là

đây là một giá trị of đó HTML link element rel (mối quan hệ) thuộc tính, được định nghĩa trong đó WHATWG HTML Living Tiêu chuẩn link-loại list. On của nó own, “alternate” chỉ có nghĩa là “an alternate representation of the current document.” (bản dịch) «an alternate representation of đó hiện tại document.» Đó cụ thể meaning xuất hiện từ đó other thuộc tính bạn pair điều này với. đó là vì sao một tag ends lên đang làm several unrelated SEO jobs — và vì sao generalist “rel=alternate explained” (bản dịch) «rel=alternate explained» posts tend để blur them together.

I’ve dài được diễn đạt này tag qua đó lens of duplicate nội dung. Trong my Tìm kiếm Engine Land piece Đó myth of đó duplicate nội dung hình phạt, I listed điều này as một of đó tools đó “consolidate alternate versions of a page, such as mobile or various country/language pages.” (bản dịch) «consolidate alternate versions of một trang, such as mobile hoặc various country/language các trang.» đó là đó unifying thesis worth holding onto: mỗi dùng of rel="alternate" tồn tại để tell các công cụ tìm kiếm những khác nhau URLs là intentional relatives, xử lý them as một entity — đó opposite of accidental duplication. (Cho cách engines thực ra pick và consolidate một representative URL, see đó sibling topic on canonicalization.) None of những các chú thích bảo đảm an outcome — không crawling, không lập chỉ mục, không consolidation, không thứ hạng hoặc traffic, không feed subscriptions, và không citation by an AI câu trả lời engine. họ là hints các công cụ tìm kiếm có thể act on, không directives they phải follow.

four SEO dùng (và một close cousin)

1. Hreflang — language/region alternates (hiện tại, phần lớn quan trọng)

Đây là một đó matters phần lớn trong 2026. Paired với hreflang, rel="alternate" declares language hoặc regional variant:

<link rel="alternate" hreflang="es" href="https://example.com/es/page/" />

Google cách diễn đạt: “If you have multiple versions of a page for different languages or regions, tell Google about these different variations,” (bản dịch) «Nếu bạn có multiple versions of một trang cho khác nhau languages hoặc regions, tell Google về những khác nhau variations,» dùng hreflang “so that we can understand that these pages are localized variations of the same content.” (bản dịch) «so đó we có thể understand đó những các trang là localized variations of đó giống nhau nội dung.» Đó load-bearing rule là reciprocity — Google: “Each language version must list itself as well as all other language versions.” (bản dịch) «Mỗi language version phải list itself cũng như all other language versions.» Break đó và Google bỏ qua đó pair (đây là một hint, không một directive — sai hreflang là đã bỏ qua, không penalized).

đó mental model. I’m có chủ ý không re-deriving ISO language/region codes, x-default, hoặc three implementation các phương thức ở đây — đó all lives trong dedicated hreflang deep dive on điều này trang web. Go ở đó cho implementation; stay ở đây cho mechanism-cấp độ view.

2. RSS/Atom feed autodiscovery (hiện tại, niche)

Paired với feed type, rel="alternate" tells các trình duyệt và feed readers nơi của bạn syndication feed lives:

<link rel="alternate" type="application/rss+xml" title="Example Feed"
      href="https://example.com/feed.xml" />

Đổi application/atom+xml cho an Atom feed. Này là đó dùng gần như mỗi generalist bài viết forgets, mặc dù “rel alternate rss” (bản dịch) «rel alternate rss» là một real query cluster. Điều gì điều này làm không làm là boost thứ hạng — John Mueller đã được rõ ràng đó “if you are looking for a ranking boost by having an RSS feed, that’s not going to happen” (bản dịch) «nếu bạn là looking cho một xếp hạng boost by có an RSS feed, đó là không going để happen» và đó “there’s no direct ranking boost for the website itself” (bản dịch) «có không trực tiếp xếp hạng boost cho đó website itself» (Công cụ tìm kiếm Roundtable coverage). Đó real giá trị là phát hiện: feeds hoạt động như một lightweight sitemap, helping Google tìm new và đã cập nhật URLs nhanh hơn (Lumar office-hours summary of Mueller comments). Phát hiện, không xếp hạng.

3. Mobile-alternate (tách biệt mobile các URL) — legacy

Paired với media, rel="alternate" points desktop URL tại tách biệt mobile (m-dot) URL:

<link rel="alternate" media="only screen and (max-width: 640px)"
      href="https://m.example.com/" />

…reciprocated by một rel="canonical" on đó mobile trang pointing lại để đó desktop URL. Này vẫn xuất hiện trong Google mobile-đầu tiên lập chỉ mục best-practices tài liệu (đã cập nhật December 2025), nhưng đây là explicitly đó non-được ưu tiên option: Google “recommends Responsive Web Design because it’s the easiest design pattern to implement and maintain,” (bản dịch) «khuyến nghị Responsive Web Design vì đây là đó easiest design pattern để implement và maintain,» và files đó tách biệt-URLs chú thích dưới “additional best practices” (bản dịch) «additional thực hành tốt nhất» — i.e., legacy hỗ trợ. Với mobile-đầu tiên lập chỉ mục hoàn tất cho all các trang since July 2024, Google evaluates đó mobile version of một trang regardless of của bạn setup. không xây dựng new mobile-alternate setups trong 2026; chỉ maintain một nếu bạn là vẫn stuck on m-dot URLs và không thể migrate để responsive tuy vậy.

Ở đây một disambiguation gần như không ai làm cleanly: rel="amphtml"không rel="alternate". đây là một khác nhau rel giá trị trong đó giống nhau “here’s another version of this page” (bản dịch) «ở đây một sản phẩm khác version of này trang» family, và đó hai nhận conflated constantly. Điều này points một canonical non-AMP trang tại của nó AMP version:

<link rel="amphtml" href="https://example.com/page.amp.html" />

…reciprocated by rel="canonical" on AMP trang pointing lại. markup vẫn hoạt động chính xác as được ghi lại cho bất kỳ trang web đó giữ AMP, nhưng AMP—strategy lost của nó reason để exist năm ago (see 2026-status section dưới). họ’re cousins, không giống nhau tag.

Mà của những điều này vẫn quan trọng trong 2026

sử dụngThuộc tính pairingStatus trong 2026
Hreflanghreflanghiện tại, cao-giá trị — một đó matters
RSS/Atom feedtype="application/rss+xml"hiện tại, niche — phát hiện chỉ, không tác động đến thứ hạng
Mobile-alternatemediaLegacy — maintain, không newly adopt
AMP (rel="amphtml")(khác rel giá trị)Tùy chọn since 2021; infra wound xuống

AMP cụ thể: Google đã xóa đó requirement đó các trang là AMP để xuất hiện trong Top Stories trong 2021 và retired đó lightning-bolt badge đó July, đang làm Cốt lõi Web Chỉ số quan trọng / trang experience đó operative tín hiệu thay vì đó AMP format itself (Google trang-experience cập nhật post; Search Engine Land). Google hiện tại “indexes AMP pages just like other web pages, and applies the same standard to all pages, regardless of the technology used.” (bản dịch) «indexes AMP các trang chỉ như other web các trang, và áp dụng đó giống nhau tiêu chuẩn để all các trang, regardless of đó technology dùng.» Thì on July 1, 2026, Google ended bộ nhớ đệm-phân phối AMP các trang trong Tìm kiếm hoàn toàn — clicks hiện tại route straight để đó publisher own AMP-hosted trang thay vì một google.com AMP viewer URL, và Google đã xóa references để “the AMP viewer, AMP Cache, and signed exchanges” (bản dịch) «đó AMP viewer, AMP Bộ nhớ đệm, và signed exchanges» từ của nó tài liệu (Search Engine Journal; Công cụ tìm kiếm Roundtable). Nếu bạn vẫn chạy AMP, giữ đó rel="amphtml" markup correct; không ai nên là adopting AMP anew cho SEO reasons.

throughline: reciprocal pairing

Three của four dùng muốn mối quan hệ declared từ cả hai ends — RSS/Atom feed autodiscovery là exception; nó một-way phát hiện link với không trả về-tag requirement, và Google own hreflang tài liệu phạm vi reciprocity rule để localized-version clusters, không để mỗi rel="alternate" sử dụng:

  • hreflang — mỗi version lists itself và mỗi khác version.
  • mobilerel="alternate" on desktop, rel="canonical" lại on mobile.
  • AMPrel="amphtml" on canonical trang, rel="canonical" lại on AMP trang.

Hỏng reciprocity là single phần lớn phổ biến implementation bug trên những điều này three. nếu mối quan hệ đó supposed để là reciprocal là một-way, expect nó để là đã bỏ qua hoặc half-declared — RSS/Atom cần không trả về link tại all.

Each alternate system has its own return signal; RSS and Atom are discovery links, not reciprocal page pairs. Nguồn: Patrick Stox

For hreflang, the English and Spanish pages list themselves and one another. For legacy separate mobile URLs, the desktop page uses rel alternate with media and the mobile page points back with rel canonical. AMP is a related but distinct pattern: the canonical page uses rel amphtml and the AMP page points back with rel canonical. RSS and Atom feed autodiscovery is one-way and is not a reciprocal page pairing.

© Patrick Stox LLC · CC BY 4.0 ·

phổ biến mistakes

  • Bị thiếu reciprocal link. number-một bug. một-way rel="alternate" mối quan hệ thường nhận đã bỏ qua (hreflang) hoặc leaves pairing half-declared (mobile/AMP).
  • Confusing rel="alternate" với rel="amphtml". khác rel các giá trị, khác jobs. AMP dùng rel="amphtml", không rel="alternate".
  • Expecting xếp hạng boost. None của những điều này lift positions. hreflang routes; feed links aid phát hiện; AMP hasn’t carried xếp hạng weight since 2021.
  • Building new mobile-alternate hoặc AMP setups trong 2026. Responsive design là default; AMP có không SEO upside. những điều này là maintenance patterns, không xây dựng patterns.
  • Đang chạy tách biệt mobile các URL responsive design tại sau khi. Mueller có warned điều này có thể confuse Google processing (công cụ tìm kiếm Roundtable) — pick một.

Bing và khác engines

Bing hỗ trợ hreflang qua rel="alternate" nhưng xử lý điều này as comparatively yếu. Microsoft Fabrice Canel có đã nói “hreflang is indeed a far weaker signal than content-language at Bing” (bản dịch) «hreflang là indeed một far weaker tín hiệu hơn nội dung-language tại Bing» (qua Công cụ tìm kiếm Roundtable) — so tại Bing, rel="alternate"/hreflang là một input among several (đó content-language header/meta, <html lang>, inbound links, và khách truy cập geography) thay vì có thẩm quyền. Đầy đủ Bing/hreflang treatment lives trong đó hreflang hướng dẫn.

nơi điều này sits

rel="alternate" là một link-cấp độ tín hiệu đó lives trong của bạn <head> alongside đó rest of đó meta tags đó quan trọng cho SEO — đây là một sibling of đó robots meta tag, đó tiêu đề element, và đó mô tả meta trong đó on-trang cluster, mặc dù đây là technically một link element thay vì một meta một. Của nó closest conceptual relative là canonicalization: canonical says “these duplicates are the same page, pick one,” (bản dịch) «những duplicates là đó cùng trang, pick một,» trong khi rel="alternate" says “these are intentionally different versions, keep them all but understand they’re related.” (bản dịch) «những là intentionally khác nhau versions, giữ them all nhưng understand họ là related.» Cho đó hreflang-cụ thể rules — codes, x-default, đó three implementation các phương thức, auditing clusters tại quy mô — see đó dedicated hreflang hướng dẫn.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.