Hướng dẫn về URL Parameters

Cách query-string parameters tạo duplicate và near-duplicate URLs và crawl các vấn đề — và cách manage them hôm nay, hiện tại đó GSC URL Parameters tool là đã biến mất.

Xuất bản lần đầu: 23 thg 6, 2026 · Cập nhật lần cuối: 8 thg 8, 2026 · Advanced
Ngôn ngữ
1 tín hiệu bằng chứng trên trang này

URL parameters là đó ?key=giá trị dữ liệu tacked onto một URL. Đó toàn bộ framework là active so với passive: active params (filter/loại/paginate/tìm kiếm) thay đổi đó trang và tạo near-duplicates; passive params (tracking, session, affiliate IDs) không thay đổi nội dung và tạo pure duplicates. They nguyên nhân duplicate nội dung, split các tín hiệu, và wasted ngân sách crawl — Google own 2024–25 dữ liệu blames faceted navigation plus hành động parameters cho ~75% of crawl các vấn đề. Đó Google Search Console URL Parameters tool là đã biến mất (retired April 2022) — không tell anyone để dùng điều này; Google được tìm thấy chỉ ~1% of configs hữu ích và hiện tại xử lý parameters tự động. Manage them hôm nay với consistent parameter order, rel=canonical cho passive params (let them crawl, không reflexively block), robots.txt chỉ cho genuine crawl traps (điều này không deindex), 404 cho empty filter combos, và không internally link để parameterized URLs. Bing vẫn có của nó Bỏ qua URL Parameters tool — một real Google-so với-Bing khác biệt.

TL;DR — URL parameters (?key=value query strings) split vào active (filter/loại/paginate/tìm kiếm — thay đổi đó trang) và passive (tracking, session, affiliate IDs — không). Passive variants thường duplicate nội dung; active combinations có thể tạo một very lớn crawl space liệu hoặc không của họ nội dung là giống hệt. Đó GSC URL Parameters tool là dead (retired 26 April 2022) — Google được tìm thấy chỉ ~1% of configs hữu ích và hiện tại learns parameters tự động. Manage them hôm nay với consistent parameter order, rel=canonical cho passive params (let them crawl — không reflexively block), robots.txt chỉ cho genuine crawl traps (điều này không deindex), 404 cho empty combos, và không bao giờ internally link để parameterized URLs. Bing vẫn có của nó Bỏ qua URL Parameters tool — đó trực tiếp Google-so với-Bing khác biệt.

Evidence for this claim Faceted navigation parameters can create very large URL spaces; Google recommends controlling crawlable combinations and returning consistent status codes. Scope: Current Google faceted-navigation guidance. Confidence: high · Verified: Google Search Central: Faceted navigation URLs Evidence for this claim Canonicalization can signal the preferred URL among duplicate or very similar parameter variants, but redirects are stronger when alternatives should not remain accessible. Scope: Current Google canonicalization methods. Confidence: high · Verified: Google Search Central: Canonicalization

Anatomy: query string so với path

MỘT URL parameter là đó dữ liệu sau đó ?, đã truyền as key=value pairs joined by &. As I put điều này trong my Ahrefs hướng dẫn on URL parameters, “URL parameters or query strings come after a question mark (?) and pass data along with the URL.” (bản dịch) «URL parameters hoặc query strings come sau một câu hỏi mark (?) và truyền dữ liệu along với đó URL.» Đó path (/shoes) identifies đó tài nguyên; đó query string (?color=blue&sort=price) modifies đó yêu cầu. Mọi thứ trong này bài viết hinges on một fact: đó giống nhau nội dung có thể là reached qua countless parameter combinations, và tìm kiếm engines treat nhiều of những as distinct URLs.

Active so với passive — đó toàn bộ framework

I frame parameters qua một split, và đó right cách sửa follows từ mà side một parameter lands on.

Active parameters thay đổi điều gì là on đó trang. Đó three I luôn name:

  • Filter — xóa some of đó nội dung, leaving đó hơn cụ thể subset một người dùng wants để see.
  • Loại — reorders đó nội dung (by price, rating, etc.).
  • Paginate — divides nội dung vào một series of related các trang.

On-site tìm kiếm là đó fourth. Những tạo real — thường near-duplicate — nội dung variants. Đó deeper, ecommerce-flavored version of này là faceted navigation; này bài viết là đó parameter lens on điều này.

Passive parameters không thay đổi đó nội dung. họ là typically dùng cho tracking — UTM tags, gclid, fbclid, affiliate IDs — và cho session IDs. Những produce pure duplicates of đó sạch URL. My default position ở đây là cụ thể: “Passive parameters can cause issues with duplicate content. Typically, you want them to be crawled, and each page should have a canonical set to the main version.” (bản dịch) «Passive parameters có thể nguyên nhân các vấn đề với duplicate nội dung. Typically, bạn muốn them để là được crawl, và mỗi trang nên có một canonical set để đó main version.» Nói cách khác, không reflexively robots-block tracking parameters — let them là được crawl và consolidate them với một canonical.

Treat active/passive as một diagnostic, không một lookup bảng keyed on đó parameter name. Đó giống nhau key name (id, sort, ref) có thể behave differently on khác nhau các trang, so trước khi bạn classify một parameter, kiểm tra điều gì đó phản hồi thực ra làm — làm đó đã trả về nội dung thay đổi, hoặc chỉ đó tracking/analytics context? Names như utm_ hoặc sort= là mạnh hints, không proof.

Cách parameters nguyên nhân SEO các vấn đề

Three distinct các chế độ lỗi, và they compound:

  • Duplicate / near-duplicate nội dung. Passive params duplicate một trang chính xác; active params (loại especially) produce near-duplicates. Này là squarely một canonicalization vấn đề — đó engine có để pick một representative URL out of đó cluster.
  • Split các tín hiệu xếp hạng. Links và authority scatter trên mỗi variant thay vì consolidating on một URL.
  • Wasted ngân sách crawl và infinite crawl spaces. “Infinite URL paths with parameters or tons of different combinations can cause issues with crawling.” (bản dịch) «Infinite URL paths với parameters hoặc tons of khác nhau combinations có thể nguyên nhân các vấn đề với crawling.» Khi parameters có thể stack arbitrarily, một single site bắt đầu để look nearly infinite — đó spider trap pattern. Google mô tả đó web itself as “a nearly infinite space, exceeding Google’s ability to explore and index every available URL,” (bản dịch) «một nearly infinite space, exceeding Google ability để explore và chỉ mục mỗi khả dụng URL,» và parameter explosion turns một site vào một nhỏ version of đó vấn đề.

Google faceted-nav doc giải thích đó crawl mechanic well: một filter hệ thống “often means a very large number of possible combinations of filters, which translates to a very large number of possible URLs,” (bản dịch) «thường có nghĩa là một very lớn number of có thể combinations of filters, mà translates để một very lớn number of có thể URLs,» và vì những URLs “seem to be novel and crawlers can’t determine whether the URLs are going to be useful without crawling first, the crawlers will typically access a very large number of faceted navigation URLs.” (bản dịch) «seem để là novel và các crawler không thể determine liệu đó URLs là going để là hữu ích không có crawling đầu tiên, đó các crawler sẽ typically access một very lớn number of faceted navigation URLs.»

Đó dữ liệu: parameters là một top crawl drain

Này không theoretical. Trong Google 2024–25 crawling discussions, Gary Illyes put real numbers on điều này. Theo Search Engine Land’s coverage, “The biggest issues were faceted navigation and action parameters, which accounted for about 75% of the problems,” (bản dịch) «Đó biggest các vấn đề đã là faceted navigation và hành động parameters, mà accounted cho về 75% of đó các vấn đề,» split as “50% come from faceted navigation” (bản dịch) «50% come từ faceted navigation»“25% come from action parameters.” (bản dịch) «25% come từ hành động parameters.» SEL defines hành động parameters as “URL parameters that trigger actions instead of meaningfully changing page content” (bản dịch) «URL parameters đó trigger actions thay vì meaningfully thay đổi trang nội dung» — think thêm-để-cart, so sánh, hoặc loại triggers đó mint near-infinite URLs. So Google itself blames parameters cho khoảng một quarter of all crawl các vấn đề on của họ end.

Đó underlying mechanism, trong Illyes’ words: “Once it discovers a set of URLs, it cannot make a decision about whether that URL space is good or not unless it crawled a large chunk of that URL space.” (bản dịch) «Khi điều này discovers một set of URLs, điều này không thể làm một decision về liệu đó URL space là good hoặc không trừ khi điều này được crawl một lớn chunk of đó URL space.» Đó crawler có để spend budget để learn một parameter space là junk.

Cách tìm của bạn parameter các vấn đề

Trước sửa, see đó phạm vi:

  • Google Search Console. Đó Các trang báo cáo — especially “Duplicate without user-selected canonical” (bản dịch) «Duplicate không có người dùng-được chọn canonical»“Discovered – currently not indexed” (bản dịch) «Discovered – hiện tại không được lập chỉ mục» — và đó Crawl Số liệu báo cáo (Settings → Crawl Số liệu) surface parameter bloat.
  • MỘT site crawl. Ahrefs Site Audit hoặc Screaming Frog sẽ cho thấy bạn parameterized URLs, của họ canonicals, và nơi bạn là internally linking để them.
  • site: + inurl: searches. MỘT nhanh site:example.com inurl:? (hoặc inurl:utm_, inurl:sort=) cho một lại-of-envelope feel cho điều gì là được lập chỉ mục.
  • Máy chủ logs. Log file analysis là đó ground truth cho parameter URLs bots thực ra hit và cách thường — đó chỉ way để xác nhận real crawl waste.
Classify the observed inventory before choosing controls. A parameter name alone does not prove whether it changes page content. Nguồn: Faceted Navigation

The representative crawl-and-log sample contains 300 parameter occurrences: 126 filters, 78 tracking parameters, 42 sort parameters, 36 pagination parameters, and 18 unknown parameters.

© Patrick Stox LLC · CC BY 4.0 ·

Cách manage parameters hôm nay

Có không single chuyển — bạn pick đó tool đó matches đó job. Three distinct jobs, và conflating them là nơi mọi người go sai.

1. Consistent xử lý, đầu tiên. MỘT lot of duplication là self-inflicted và free để cách sửa. My rule: “Keep a consistent order, and don’t have paths that allow for adding additional parameters.” (bản dịch) «Giữ một consistent order, và không có paths đó cho phép cho thêm additional parameters.» Dùng một key theo giá trị, và dùng đó ngành-tiêu chuẩn separator. Google là rõ ràng: “Use the industry standard URL parameter separator ’&’. Characters like comma (,), semicolon (;), and brackets ([ and ]) are hard for crawlers to detect as parameter separators.” (bản dịch) «Dùng đó ngành tiêu chuẩn URL parameter separator ’&’. Characters như comma ( ), semicolon ( ), và brackets ( và ) là hard cho các crawler để detect as parameter separators.» Và giữ đó order fixed — Google: “Ensure that the logical order of the filters always stays the same and that no duplicate filters can exist.” (bản dịch) «Bảo đảm đó logical order of đó filters luôn vẫn giữ đó giống nhau và đó không duplicate filters có thể exist.» Inconsistent order alone multiplies duplicate URLs. Hai hơn free các cách sửa: không emit một parameter tại all khi đây là set để của nó default giá trị (?sort=default mints một needless duplicate of đó un-parameterized URL), và reject hoặc normalize không hợp lệ combinations tại đó application cấp độ thay vì of letting mỗi nonsense combination generate của nó own URL — không có collapsing combinations đó genuinely produce khác nhau, hữu ích nội dung.

2. rel=canonical cho passive / tracking params — my default. Let them là được crawl và point mỗi variant canonical tại đó sạch URL. My chính xác cách diễn đạt: một canonical “can help consolidate signals to a chosen URL but requires each additional version of a page to be crawled… This is what I’d opt for by default.” (bản dịch) «có thể help consolidate các tín hiệu để một chosen URL nhưng requires mỗi additional version of một trang để là được crawl… Này là điều gì I’d opt cho theo mặc định.» Là honest về đó speed, though — một canonical là một hint, không một directive (đây là một of đó canonical tags among nhiều các tín hiệu trong canonicalization), và Google says dùng điều này “may, over time, decrease the crawl volume of non-canonical versions of those URLs.” (bản dịch) «có thể, theo thời gian, decrease đó crawl volume of non-canonical versions of những URLs.» Note đó chậm “theo thời gian.”

3. noindex khi bạn truly muốn một parameter variant out of đó chỉ mục. Điều này hoạt động, nhưng đó trang có để stay crawlable cho Google để see đó tag, và như canonical điều này “may be crawled less over time.” (bản dịch) «có thể là được crawl ít hơn theo thời gian.» không pair điều này với một robots.txt block — nếu đó URL là blocked, Google không thể see đó noindex tại all.

4. robots.txt disallow — chỉ cho genuine crawl traps. Này dừng crawling, không lập chỉ mục. Đó myth-killer, trong my words: “Blocking parameters in robots.txt means that the pages may still get indexed.” (bản dịch) «Blocking parameters trong robots.txt có nghĩa là đó các trang có thể vẫn nhận được lập chỉ mục.» They sẽ không thường cho thấy trong thông thường searches, nhưng “these pages won’t be crawled and won’t consolidate signals.” (bản dịch) «những các trang sẽ không là được crawl và sẽ không consolidate các tín hiệu.» So reserve robots.txt cho parameter spaces bạn không bao giờ muốn được crawl (đúng combinatorial traps), không as một duplicate-nội dung cách sửa. Google own crawl-budget hướng dẫn agrees với đó sequence: “Consolidate duplicate content to focus crawling on unique content rather than unique URLs,” (bản dịch) «Consolidate duplicate nội dung để focus crawling on unique nội dung thay vì unique URLs,» và chỉ “if you can’t consolidate them… block these unimportant pages using robots.txt.” (bản dịch) «nếu bạn không thể consolidate them… block những unimportant các trang dùng robots.txt.»

5. 404/410 cho empty filter combinations. Google: “Return an HTTP 404 status code when a filter combination doesn’t return results.” (bản dịch) «Trả về an HTTP mã trạng thái khi một filter combination không trả về kết quả.» không trả về một 200 empty trang (đó là một soft 404 — Google giữ crawling điều này và điều này “will continue to be crawled, and waste your budget” (bản dịch) «sẽ continue để là được crawl, và waste của bạn budget»).

6. không internally link để parameterized URLs. bạn là handing các crawler đó trap yourself. My rule: “You should avoid passive parameters like those used for tracking on internal links.” (bản dịch) «Bạn nên tránh passive parameters như những dùng cho tracking on liên kết nội bộ.» Trước khi bạn strip một tracking parameter off an internal link, though, verify điều này thực ra cần để là ở đó — kiểm tra xem analytics campaign capture hoặc một chuyển hướng phụ thuộc vào điều này — và consider firing an analytics event thay vì một URL parameter cho interactions đó chỉ cần để là tracked, không được crawl.

MỘT note on prevention tactics bạn’ll see elsewhere: some mọi người render filters qua POST hoặc đổi đó ? cho một # fragment so không crawlable URL là minted. I không khuyến nghị đó fragment đổi — “There’s a growing trend where people are using # instead of ? as the fragment identifier, especially for passive parameters like those used for tracking. This is generally not a good idea.” (bản dịch) «có một growing trend nơi mọi người là dùng # thay vì ? as đó fragment identifier, especially cho passive parameters như những dùng cho tracking. Này là generally không một good ý tưởng.» Treat những as chung ngành options, không một khuyến nghị từ me.

Đó GSC URL Parameters tool là đã biến mất

Đó single hầu hết quan trọng currency kiểm tra on này topic: Google retired đó Tìm kiếm Console URL Parameters tool trong 2022. Điều này đã là announced on 28 March 2022 và đã xóa on 26 April 2022. Theo Barry Schwartz Search Engine Land ghi-lên, “Google will be sunsetting this feature on April 26, 2022 and you will no longer be able to access the tool after that date.” (bản dịch) «Google sẽ là sunsetting này feature on April 26, 2022 và bạn sẽ không lâu hơn là able để access đó tool sau đó date.»

Google stated reasons (relayed as trực tiếp quotes of Google blog post by SEL và 9to5Google): “only about 1% of the parameter configurations currently specified in the URL Parameters tool are useful for crawling,” (bản dịch) «chỉ về 1% of đó parameter configurations hiện tại specified trong đó URL Parameters tool là hữu ích cho crawling,»“Over the years, Google became much better at guessing which parameters are useful on a site and which are —plainly put— useless.” (bản dịch) «Over đó năm, Google trở thành nhiều tốt hơn tại guessing mà parameters là hữu ích on một site và mà là —plainly put— useless.» So they “deprecat[ed] the URL Parameters tool.” (bản dịch) «deprecat[ed] đó URL Parameters tool.»

Điều cần làm thay vì, theo Google: không có gì, theo mặc định“Google’s crawlers will learn how to deal with URL parameters automatically.” (bản dịch) «Google các crawler sẽ learn cách deal với URL parameters tự động.» Cho hơn control, Google points để “robots.txt rules… or… hreflang” (bản dịch) «robots.txt rules… hoặc… hreflang» — i.e. đó giống nhau tools trên, không một dedicated parameter panel. I chẳng hạn cùng một điều về đó dead tool: “The tool was deprecated in early 2022.” (bản dịch) «Đó tool đã là deprecated trong sớm 2022.» Nếu một hướng dẫn vẫn tells bạn để configure parameters trong Search Console, điều này có trước 2022.

có không single chuyển đó replaced điều này. Đó retirement có nghĩa là bạn cách sửa parameter sprawl tại đó nguồn (URL generation, liên kết nội bộ) và pick một state-cụ thể control — canonical, noindex, robots.txt, hoặc 404 — theo đó framework trên, thì xác nhận đây là hoạt động qua GSC Các trang và Crawl Số liệu các báo cáo thay vì một dedicated parameter panel.

Bing vẫn cho phép bạn bỏ qua parameters

Ở đây một genuine Google-so với-Bing khác biệt gần như mọi người omits: Bing vẫn có một parameter tool. Trong Bing Quản trị viên web Tools, dưới Configure My Site › Bỏ qua URL Parameters, bạn có thể tell Bing mà parameters để bỏ qua trong khi crawling — đó modern incarnation of Bing old URL Normalization feature. Bing ngay cả suggests parameters điều này thinks là safe để bỏ qua; bạn thêm them với một nhấp. Đó một caveat để respect: chỉ thêm một parameter để bỏ qua nếu bạn là sure điều này không needed cho của bạn nội dung để display correctly.

Bing lịch sử cách diễn đạt, từ của nó 2012 URL Normalization post, captures vì sao điều này tồn tại: “When you have duplicate problems due to extra URLs parameters, using the URL Normalization feature in the Bing Webmaster Tools is the preferred method,” (bản dịch) «Khi bạn có duplicate các vấn đề due để extra URLs parameters, dùng đó URL Normalization feature trong đó Bing Quản trị viên web Tools là đó được ưu tiên phương thức,» sau mà “the crawler will not visit the URLs with extra parameters except for an occasional test of the quality of the normalization rules.” (bản dịch) «đó crawler sẽ không visit đó URLs với extra parameters except cho an occasional kiểm thử of đó quality of đó normalization rules.» Bing là candid đó canonical alone là imperfect — “relying on canonical tag is not necessarily the perfect solution to fix all your duplicate content problems” (bản dịch) «relying on canonical tag không phải nhất thiết đó perfect giải pháp để cách sửa all của bạn duplicate nội dung các vấn đề» — và xử lý đó tag as “complimentary information to the URL Normalization rules provided.” (bản dịch) «complimentary information để đó URL Normalization rules provided.» Practical upshot: dùng Bing tool cho Bing; dùng robots.txt / canonical cho Google.

Parameters, faceted navigation & spider traps

Những three overlap nhưng không đó giống nhau. Faceted navigation là đó ecommerce-filter case (đó deep dive on active filter parameters). Spider traps là đó infinite-URL pathology đó unbounded parameter stacking có thể tạo. Và ngân sách crawl là đó tài nguyên đó toàn bộ mess drains. Này bài viết là đó parameter-xử lý lens đó ties them together — see những cho đó rộng hơn treatment.

Phổ biến myths

  • “Use the GSC URL Parameters tool.” (bản dịch) «Dùng đó GSC URL Parameters tool.» Đã biến mất since 26 April 2022. Dùng canonical, robots.txt, noindex (và Bing Bỏ qua URL Parameters cho Bing). Google các crawler hiện tại “learn how to deal with URL parameters automatically.” (bản dịch) «learn cách deal với URL parameters tự động.»
  • “Parameters always hurt SEO.” (bản dịch) «Parameters luôn hurt SEO.» Không. Parameters là thông thường và necessary (sessions, tracking, filters, pagination). Đó vấn đề là unmanaged duplication, không parameters theo se. Passive params là thường fine để crawl và canonical.
  • “Block all parameters in robots.txt.” (bản dịch) «Block all parameters trong robots.txt.» Over-blocking orphans nội dung và hides của bạn canonicals và noindex từ Google — và điều này không deindex anyway (“the pages may still get indexed” (bản dịch) «đó các trang có thể vẫn nhận được lập chỉ mục»). Block chỉ đúng crawl traps; canonical đó rest.
  • “A canonical fixes parameter duplicates instantly.” (bản dịch) «MỘT canonical các cách sửa parameter duplicates instantly.» đây là một hint và chậm — “may, over time, decrease the crawl volume.” (bản dịch) «có thể, theo thời gian, decrease đó crawl volume.» Các crawler vẫn hit đó variants meanwhile.

Add an expert note

Pin an expert quote

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