Hướng dẫn về Sitecore SEO

Cách làm một Sitecore site xếp hạng — đó hai các nền tảng đó thay đổi mọi thứ (XP so với XM Cloud), điều gì SXA cho bạn out of đó box và điều gì điều này không, và đó nền tảng-cụ thể traps đó catch enterprise nhóm: đó default robots.txt đó chặn mỗi crawler, aliases đó tạo duplicate nội dung tại HTTP 200, và metadata đó silently fails để inherit vì blank không NULL.

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

Sitecore là an enterprise DXP đó ships với gần như không SEO functionality out of đó box — và đó hai sản phẩm lines behave very differently. Sitecore XP là truyền thống máy chủ-được kết xuất .NET; XM Cloud (renamed SitecoreAI trong Sitecore hiện tại tài liệu) là headless SaaS nơi một Tiếp theo.js front end (qua JSS, hiện tại published as Nội dung SDK) controls đó HTML và bạn manage SEO với Tiếp theo.js metadata APIs. SXA adds đó basics (sitemap, robots.txt management, metadata các trường) nhưng mọi thứ vẫn cần configuration. Three Sitecore-cụ thể traps catch nhóm: đó default robots.txt chặn mỗi crawler nếu đó robots trường là left blank (empty ≠ permissive); item aliases serve HTTP 200 on cả hai URLs, creating đúng duplicate nội dung đó canonical không cách sửa tự động; và blank metadata các trường không fall lại để Tiêu chuẩn Các giá trị trừ khi 'Reset Blank' là enabled, vì blank không NULL. On đó enterprise quy mô Sitecore lives tại, governance — một base SEO template, validation rules, environment control — matters as nhiều as bất kỳ single setting.

Tóm tắt — Sitecore ships với gần như không SEO functionality; SXA adds basics nhưng cần configuration. hai các nền tảng diverge completely: XP là máy chủ-được kết xuất.NET (các crawler see finished HTML, personalization renders máy chủ-side); XM Cloud là headless, nơi tiếp theo.js front end controls HTML và bạn manage SEO với tiếp theo.js metadata APIs (generateMetadata, MetadataRoute) — với SSG/ISR được khuyến nghị kết xuất modes. nền tảng-cụ thể traps: default robots.txt chặn all các crawler Khi trường là blank; item aliases trả về HTTP 200 on cả hai các URL (đúng duplicate nội dung, không canonical khắc phục theo mặc định); và blank metadata các trường không inherit tiêu chuẩn Các giá trị trừ khi “Reset Blank” là enabled (blank ≠ NULL). Tại Sitecore enterprise quy mô, governance — base SEO template, validation rules, environment control — là thực hoạt động. (Naming note: Sitecore tài liệu hiện tại call XM Cloud sản phẩm SitecoreAI; architecture dưới là unchanged.)

Evidence for this claim The article's described sitecore-seo capabilities must be evaluated against the platform's current documentation rather than assumed to be search-engine behavior. Scope: Platform-specific capability documentation. Confidence: high · Verified: Sitecore: SEO Evidence for this claim Regardless of platform, Google needs crawlable URLs, accessible rendered content, descriptive metadata, and valid search directives. Scope: Google requirements independent of platform. Confidence: high · Verified: Google Search Central: SEO Starter Guide

Hai các nền tảng, hai completely khác SEO models

single phần lớn quan trọng điều để establish trước khi touching bất cứ điều gì: mà Sitecore là bạn on? sản phẩm name là giống nhau; SEO mechanics không phải.

  • Sitecore XP (Experience Nền tảng). Truyền thống.NET, máy chủ-được kết xuất qua Razor/MVC, deployed on-premise hoặc trong managed cloud. Googlebot generally nhận finished HTML. SEO là managed bên trong Sitecore — trong templates, tiêu chuẩn Các giá trị, và yêu cầu pipelines.
  • XM Cloud. Headless SaaS. Sitecore stores nội dung và exposes nó over GraphQL API (Experience Edge); decoupled front end — gần như luôn tiếp theo.js được xây dựng với Sitecore JSS (JavaScript Services) — renders HTML. SEO lives trong tiếp theo.js application layer. Sitecore holds nội dung; tiếp theo.js controls output.

MỘT naming note nếu bạn là kiểm tra Sitecore own tài liệu trong khi reading này: as of mid-2026, Sitecore tài liệu site có renamed đó composable SaaS sản phẩm từ “XM Cloud” để SitecoreAI — đó old doc.sitecore.com/xmc/...developers.sitecore.com/learn/accelerate/xm-cloud/... URL paths hiện tại chuyển hướng để .../sai/.../sitecoreai/... paths, và đó nền tảng own landing trang mô tả điều này as “a cloud-native, SaaS, hybrid headless digital experience platform.” (bản dịch) «một cloud-native, SaaS, hybrid headless digital experience nền tảng.» Đó architecture này bài viết mô tả là unchanged — Experience Edge, GraphQL, một decoupled Tiếp theo.js front end — nhưng đó front-end SDK là hiện tại published as Nội dung SDK (open nguồn, Tiếp theo.js-đầu tiên) thay vì dưới đó JSS name, và bạn’ll see “SitecoreAI” thay vì “XM Cloud” trong hiện tại screenshots và menu labels. I’ve kept “XM Cloud” trong này bài viết vì đó là vẫn đó term hầu hết practitioners tìm kiếm và hầu hết existing implementations chạy on, nhưng không là thrown nếu của bạn Sitecore rep hoặc đó Cloud Portal hiện tại says SitecoreAI — giống nhau nền tảng, giống nhau SEO mechanics dưới.

Trong cả hai cases đó practical baseline là đó giống nhau. As Fishtank Marcel put điều này lại trong 2018, “Sitecore ships with virtually no SEO functionality (with the exception of SXA which includes some basics).” (bản dịch) «Sitecore ships với virtually không SEO functionality (với đó exception of SXA mà bao gồm some basics).» đó là vẫn đó right mental model. SXA (Sitecore Experience Accelerator) là đó layer đó cho bạn một sitemap module, robots.txt management trong đó nội dung tree, và standardized metadata các trường. Không có điều này, all of đó là custom development.

Này là squarely enterprise SEO territory. Sitecore implementations involve dedicated nhà phát triển và giải pháp partners, và — as I’ve được viết về enterprise các trang generally“the more likely you are to run into multiple tech stacks,” (bản dịch) «đó hơn có khả năng bạn là để chạy vào multiple tech stacks,» legacy các hệ thống, và split quyền sở hữu trên sections. Giữ đó trong mind: on Sitecore, đó cách sửa cho an SEO vấn đề là thường một template thay đổi hoặc một pipeline override owned by một nhà phát triển, không một setting bạn flip yourself.

Metadata — và blank-so với-NULL trap

SEO các trường (trang tiêu đề, mô tả meta, Open Graph tags) trực tiếp trong trang của bạn dữ liệu templates. Đó sạch pattern là một base SEO template đó mỗi trang template inherits từ, so đó các trường exist mọi nơi. Ken Gray of Konabos notes đó default khoảng trống trực tiếp: “out-of-the-box, Sitecore’s data templates might not include some of the Meta Data fields.” (bản dịch) «out-of-đó-box, Sitecore dữ liệu templates có thể không bao gồm some of đó Meta Dữ liệu các trường.»

Tiêu chuẩn Các giá trị let bạn set sensible defaults cho những các trường (ví dụ một $name token as một tiêu đề fallback). Nhưng ở đây đó Sitecore-cụ thể trap đó produces bị thiếu metadata tại quy mô. Sitecore own tài liệu là rõ ràng: “If the value of a field is NULL, the item contains the standard value for that field as defined in the data template for that item.” (bản dịch) «Nếu đó giá trị of một trường là NULL, đó item contains đó tiêu chuẩn giá trị cho đó trường as được định nghĩa trong đó dữ liệu template cho đó item.» Đó catch là đó một blank trường không phải NULL. Khi một nội dung tác giả clears một mô tả meta, điều này becomes blank — và một blank trường làm không fall lại để đó Tiêu chuẩn Giá trị trừ khi “Reset Blank” là enabled on đó trường. Đó kết quả là các trang kết xuất <meta name="description" content=""> thay vì inheriting một default. On một lớn site, đó là thousands of empty các mô tả không ai dự kiến.

khắc phục là twofold: enable “Reset Blank” on metadata các trường nơi fallback là desired, và thêm validation rules đó enforce non-rỗng các tiêu đề và các mô tả (và character limits) so authors có thể’t silently ship blanks.

URL management và alias trap

Sitecore generates các URL từ nội dung-tree path theo mặc định; sạch các URL come từ SXA settings hoặc custom item resolvers.

Đó trap là item aliases — alternate URLs bạn có thể attach để bất kỳ item. They look harmless và they không phải SEO-neutral. As Dheer Rajpoot được ghi lại, “no redirect (no 301 or 302 HTTP status code) happens when you are using aliases in Sitecore,” (bản dịch) «không chuyển hướng (không 301 hoặc 302 HTTP mã trạng thái) happens khi bạn là dùng aliases trong Sitecore,» mà có nghĩa là “multiple URLs will be created for a single page URL.” (bản dịch) «multiple URLs sẽ là đã tạo cho một single trang URL.» Cả hai đó canonical URL và đó alias trả về HTTP 200 với giống hệt nội dung — genuine duplicate nội dung, và Sitecore làm không auto-emit một canonical tag để resolve điều này.

bạn có hai governance-grade các cách sửa:

  1. Override AliasResolver trong HttpRequest pipeline để inject thẻ canonical pointing tại thực URL, hoặc
  2. Modify alias pipeline để vấn đề 301 chuyển hướng thay vì serving alias trực tiếp.

My khuyến nghị là đó second: treat aliases as các chuyển hướng, không alternate access URLs. Ken Gray advice áp dụng broadly ở đây — “use Sitecore’s canonical link management to specify the preferred version of a URL” (bản dịch) «dùng Sitecore canonical link management để specify đó được ưu tiên version of một URL» — nhưng on aliases cụ thể, một 301 là cleaner hơn relying on canonical hints.

Sitemaps

On SXA, configure sitemap tại trang web/Settings → các công cụ tìm kiếm Sitemap → Sitemap Chế độ. Hai relevant modes: Stored trong bộ nhớ đệm ( default — regenerates dynamically; good cho frequently đã cập nhật hoặc Azure-hosted các trang) và Stored trong file ( static file; tốt hơn cho lớn các trang đó thay đổi infrequently, avoiding regeneration overhead). SXA tự động appends sitemap URL để robots.txt, và sitemap lives tại /sitemap.xml. phổ biến thất bại: nếu TargetHostName không phải configured, sitemap trả về 404.

On XM Cloud + Tiếp theo.js, generate đó sitemap programmatically với MetadataRoute.Sitemap, querying Experience Edge over GraphQL — mà cho phép bạn exclude non-indexable URLs tại đó application layer. Sitecore own hướng dẫn notes đó “Next.js offers built-in sitemap and robots.txt generation.” (bản dịch) «Tiếp theo.js offers được xây dựng-trong sitemap và robots.txt generation.»

Robots.txt — default đó chặn mọi thứ

Này là đó Sitecore trap với đó highest blast radius. On SXA, robots.txt là configured trong đó nội dung tree (site Settings → Robots nội dung trường), và bạn phải republish đó site sau một thay đổi. Đó gotcha, straight từ Sitecore tài liệu: “If no rules are added, the system writes: ‘User-agent: * Disallow: /’” (bản dịch) «Nếu không rules là đã thêm, đó hệ thống ghi: ‘Người dùng-agent: * Disallow: /’» — mà chặn mỗi crawler. An empty robots trường không phải một permissive robots.txt; đây là một site-wide block. Bạn phải explicitly set:

User-agent: *
Allow: /

On hầu hết các nền tảng một bị thiếu robots.txt có nghĩa là “crawl everything.” (bản dịch) «crawl mọi thứ.» On Sitecore điều này có thể có nghĩa là đó opposite, so verifying production robots.txt là một non-negotiable launch step. On XM Cloud + Tiếp theo.js, dùng MetadataRoute.Robots cho một code-driven, loại-safe robots.txt. Riêng, CM (Nội dung Management) instances và QA/staging environments nên luôn disallow all — chỉ đó CD (Nội dung Phân phối) production instance nên là crawlable.

Multilingual, hreflang, và multisite

Sitecore stores language versions as tách biệt versions of đó giống nhau item, không tách biệt items. Đó, combined với language fallback (item-cấp độ hoặc đó hơn granular trường-cấp độ, e.g. an es-MX → es-ES → en chain), có thể serve đó giống nhau nội dung tại multiple language URLs — một duplicate-nội dung vector trừ khi hreflang các tín hiệu đó mối quan hệ. Và hreflang là không tự động trong tiêu chuẩn Sitecore; điều này có để là đã thêm để templates (SXA có thể generate điều này khi configured), với đầy đủ absolute URLs, bidirectional references, và an x-default. As John Mueller put điều này (cited by Jakub Koba), “TBH hreflang is one of the most complex aspects of SEO (if not the most complex one).” (bản dịch) «TBH hreflang là một of đó hầu hết phức tạp aspects of SEO (nếu không đó hầu hết phức tạp một).» không underestimate điều này.

Sitecore cũng natively hỗ trợ multisite — nhiều các trang trong một install, sometimes sharing nội dung. Shared nội dung trên site boundaries cần một deliberate canonical strategy, và mỗi site cần của nó own sitemap và robots.txt. Này là chính xác đó kind of split-quyền sở hữu, shared-infrastructure complexity I flagged trong enterprise SEO kỹ thuật: “Sometimes different people are responsible for different sections of the website or even different pages, which can make internal linking time-consuming.” (bản dịch) «Sometimes khác nhau mọi người là responsible cho khác nhau sections of đó website hoặc ngay cả khác nhau các trang, mà có thể làm liên kết nội bộ time-consuming.»

Headless kết xuất strategy (XM Cloud)

Một layer-quyền sở hữu point worth đang rõ ràng về, since điều này trips mọi người lên: XM Cloud environments có cả hai an editing host và một kết xuất host, và they không phải cùng một điều. Sitecore own tài liệu draw đó line rõ ràng — đó editing host tồn tại chỉ để power đó WYSIWYG editing experience bên trong Trang Builder/Design Studio, “is not set up or scaled for serving live traffic,” (bản dịch) «không phải set lên hoặc scaled cho serving trực tiếp traffic,» và sees internal (tác giả-chỉ) traffic. Đó kết xuất host là đó công khai-facing Tiếp theo.js app — hosted on Vercel, Netlify, hoặc Azure, consuming nội dung từ Experience Edge, và scaled để serve real site khách truy cập. Các crawler chỉ bao giờ hit đó kết xuất host; đó editing host kết xuất behavior (hoặc an editing-host URL leaking vào một sitemap hoặc getting linked để) không phải representative of điều gì Googlebot sees và không điều gì đó các công cụ tìm kiếm nên là able để reach tại all.

On XM Cloud kết xuất chế độ bạn chọn trong tiếp theo.js là SEO decision. Akshay Sura (Konabos) lays out four options cleanly:

StrategySEO impact
SSG (static)Best — “SSG pre-renders HTML at build time… Search engines can easily crawl the pre-rendered HTML.” (bản dịch) «SSG pre-renders HTML tại xây dựng time… Các công cụ tìm kiếm có thể easily crawl đó pre-được kết xuất HTML.»
ISR (incremental static regen)Good — static performance với background freshness; được khuyến nghị cho nội dung tại quy mô
SSR (máy chủ-side render)Good — “Fully rendered HTML is ready for search engines to index.” (bản dịch) «Fully được kết xuất HTML là ready cho các công cụ tìm kiếm để chỉ mục.»
CSR (client-side render)Worst — “Search engines may struggle with indexing JavaScript-rendered content.” (bản dịch) «Các công cụ tìm kiếm có thể struggle với lập chỉ mục JavaScript-được kết xuất nội dung.»

Đó khuyến nghị: SSG hoặc ISR cho SEO-cốt yếu nội dung; reserve CSR cho interactive UI chỉ. Metadata là set qua generateMetadata (App Router). David Austin (Fishtank) notes một performance nicety: “All fetch calls within generateMetadata are memoized, meaning identical URLs are only fetched once across the application, preventing redundant requests.” (bản dịch) «All fetch calls trong là memoized, meaning giống hệt URLs là chỉ fetched khi trên đó application, preventing redundant các yêu cầu.» Và as Sebastián Aliaga diễn đạt điều này, “The dynamic approach is the better method for Sitecore Headless as you’ll be able to take what’s part of the page’s layout data and incorporate it.” (bản dịch) «Đó dynamic approach là đó tốt hơn phương thức cho Sitecore Headless as bạn’ll là able để take điều gì là part of đó trang layout dữ liệu và incorporate điều này.»

Personalization — không cloak

Sitecore personalization là thực SEO consideration. On XP, personalization renders máy chủ-side, so Googlebot sees default (un-personalized) experience — hãy đảm bảo đó default là hoàn tất và SEO-optimized, không thin. On XM Cloud, client-side personalization (JSS) có thể hide nội dung từ các crawler đó không chạy JavaScript; pre-render default với SSR, hoặc personalize tại edge.

hard rule trên cả hai: không bao giờ phục vụ khác nội dung để các crawler hơn để người dùng — đó cloaking, và nó guidelines violation. không bao giờ personalize chính H1, FAQ nội dung, hoặc dữ liệu có cấu trúc với client-side rules. Personalization nên thêm để, không bao giờ replace, canonical nội dung.

Dữ liệu có cấu trúc

Dùng JSON-LD trong <script type="application/ld+json">. On XP, render điều này từ template các trường trong của bạn Razor view hoặc qua pipeline; on XM Cloud, model schema các trường trong templates, retrieve over GraphQL, và render trong đó Tiếp theo.js component. Prioritize FAQPage, HowTo, Product, Article, và BreadcrumbList. Bạn có thể deploy qua một tag manager — Martha van Berkel (Schema App) notes nhóm “typically use JavaScript to deploy Schema Markup to Sitecore… both efficient and scalable” (bản dịch) «typically dùng JavaScript để deploy Schema Markup để Sitecore… cả hai efficient và scalable» — nhưng là aware client-side injection có nghĩa là AI các crawler có thể miss điều này, so ưu tiên máy chủ-được kết xuất JSON-LD cho maximum coverage. Peter Lambrou (Codehouse) frames đó payoff đơn giản: “Add schema markup to the page HTML to make your search results appear more attractive.” (bản dịch) «Thêm schema markup để đó trang HTML để làm của bạn kết quả tìm kiếm xuất hiện hơn attractive.»

Enterprise governance — nơi thực hoạt động là

Single settings aside, đó SEO outcome on một big Sitecore install là decided by governance. I’ve đã nói trước đó enterprise các trang là nơi SEO kỹ thuật shines precisely vì “enterprise sites can have complex infrastructures and a lot of legacy systems in place” (bản dịch) «enterprise các trang có thể có phức tạp infrastructures và một lot of legacy các hệ thống trong place» — và “I doubt there’s a major website that is technically perfect.” (bản dịch) «I doubt có một major website đó là technically perfect.» Đó recurring Sitecore-cụ thể governance items:

  • Template sprawl. Multiple templates cho giống nhau purpose, mỗi với khác (hoặc bị thiếu) SEO các trường. Audit them; enforce base SEO template đó mỗi trang template inherits.
  • Metadata validation. “Reset Blank” plus trường-cấp độ validation so authors có thể’t ship rỗng hoặc over-length các tiêu đề và các mô tả.
  • Alias governance. policy đó aliases là chỉ đã tạo với canonical override hoặc as 301s.
  • Environment control. CM/QA/staging disallowed; production explicitly được phép và verified.
  • Ngân sách crawl tại quy mô. Faceted navigation, language versions, và parameter các URL có thể blow lên URL space; curate sitemaps và govern robots/noindex tightly. (See ngân sách crawl.)

Add an expert note

Pin an expert quote

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