Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Thiết kế cấu trúc URL cho trang web thương mại điện tử
Khi bạn thiết kế URL hợp lý, Google có thể xác định và truy xuất các trang trên trang web thương mại điện tử của bạn một cách hiệu quả hơn. Nếu bạn kiểm soát cấu trúc của các URL của mình (ví dụ: bạn tạo trang web của riêng mình từ đầu), thì hướng dẫn này có thể giúp bạn lựa chọn cấu trúc URL để tránh các vấn đề liên quan đến hoạt động lập chỉ mục mà Google nhận thấy trên các trang web thương mại điện tử.
Tại sao cấu trúc URL lại quan trọng
Cấu trúc thiết kế URL hợp lý sẽ giúp Google thu thập dữ liệu và lập chỉ mục trang web của bạn, còn cấu trúc URL không hợp lý có thể dẫn đến những vấn đề sau:
Nội dung có thể bị bỏ sót nếu Googlebot lầm tưởng hai URL sẽ trả về cùng một nội dung vì trình thu thập dữ liệu chỉ có thể truy xuất một URL (URL còn lại bị loại bỏ do trùng lặp). Tình trạng này có thể xảy ra nếu bạn dùng giá trị nhận dạng theo đoạn (chẳng hạn như #fragment) để cho thấy nội dung khác nhau. Google không dùng giá trị nhận dạng theo đoạn trong quá trình lập chỉ mục.
Ví dụ: Google xem /product/t-shirt#black và /product/t-shirt#white là cùng một trang.
Trình thu thập dữ liệu có thể truy xuất cùng một nội dung nhiều lần nếu Google cho rằng hai URL là khác nhau nhưng kết quả là trả về cùng một trang. Khi đó, tốc độ thu thập dữ liệu trên trang web của bạn có thể bị chậm đi và máy chủ của bạn có thể phải tải thêm mà không có lợi ích gì.
Ví dụ: Có thể /product/black-t-shirt và /product?sku=1234 sẽ trả về cùng một trang sản phẩm, nhưng Google không thể xác định điều này chỉ bằng cách xem xét URL.
Trình thu thập dữ liệu có thể cho rằng trang web của bạn gồm vô số trang nếu các URL của bạn chứa một giá trị thay đổi liên tục (chẳng hạn như dấu thời gian). Do đó, có thể Google sẽ mất nhiều thời gian hơn để tìm toàn bộ nội dung hữu ích trên trang web của bạn.
Ví dụ: Có thể Google sẽ xem /about?now=12:34am và /about?now=12:35am là các URL khác nhau mặc dù cả hai URL này đều cho thấy cùng một trang.
Để tối ưu hóa hoạt động thu thập dữ liệu và lập chỉ mục của Google đối với trang web của bạn, hãy làm theo những phương pháp hay nhất sau đây về cách thức tạo cấu trúc cho URL.
Đề xuất chung về URL
Giảm thiểu số lượng URL thay thế trả về cùng một nội dung để tránh việc Google gửi nhiều yêu cầu đến trang web của bạn hơn mức cần thiết. Google có thể không nhận ra rằng hai URL trả về cùng một trang cho đến khi cả hai URL đó được truy xuất.
Nếu máy chủ web xử lý loại chữ hoa và chữ thường như nhau trong một URL, hãy chuyển đổi toàn bộ văn bản thành cùng một loại chữ để Google dễ dàng xác định những URL tham chiếu đến cùng một trang.
Đảm bảo mỗi trang trong kết quả dạng phân trang đều có một URL riêng biệt. Hầu hết các lỗi về URL mà chúng tôi bắt gặp thuộc về cấu trúc URL phân trang.
Thêm các từ mang tính mô tả vào đường dẫn URL. Các từ trong URL có thể giúp Google hiểu rõ hơn về trang.
Nên:
/product/black-t-shirt-with-a-white-collar
Không nên:
/product/3243
Đề xuất về tham số truy vấn URL
Hãy làm theo những đề xuất này khi dùng tham số truy vấn để giúp Google thu thập dữ liệu và lập chỉ mục thành công trang web của bạn.
Nếu có thể, hãy dùng tham số URL ?key=value thay vì ?value.
Tham số URL giúp Google Tìm kiếm hiểu được cấu trúc trang web của bạn và thu thập dữ liệu cũng như lập chỉ mục một cách hiệu quả hơn.
Nên:
/photo-frames?page=2, /t-shirt?color=green
Không nên:
/photo-frames?2, /t-shirt?green
Tránh dùng hai lần cùng một tham số. Nếu không, Googlebot có thể bỏ qua một trong những giá trị đó.
Nên:
?type=candy,sweet
Không nên:
?type=candy&type=sweet
Tránh liên kết nội bộ đến các tham số tạm thời, chẳng hạn như mã nhận dạng phiên, mã theo dõi, giá trị tương đối của người dùng (location=nearby, time=last-week) và thời gian hiện tại. Cách làm này có thể tạo ra các URL có thời gian tồn tại ngắn hoặc các URL trùng lặp cho cùng một trang. Để thu được kết quả tốt nhất trên Google Tìm kiếm, hãy sử dụng các URL lâu dài và ổn định.
Nên:
/t-shirt?location=UK
Không nên:
/t-shirt?location=nearby, /t-shirt?current-time=12:02, /t-shirt?session=123123123
Làm thế nào Google hiểu được URL của các biến thể sản phẩm
Có một việc mà các trang web thương mại điện tử thường phải suy xét, đó là cách tạo cấu trúc cho URL khi sản phẩm có nhiều kích thước hoặc màu sắc. Mỗi tổ hợp thuộc tính sản phẩm được gọi là một biến thể sản phẩm. Để giúp Google hiểu được các biến thể sản phẩm, hãy đảm bảo rằng mỗi biến thể có thể được xác định bằng một URL riêng. Bạn nên sử dụng những cấu trúc URL sau đây đối với URL của các biến thể:
Một phân đoạn đường dẫn, chẳng hạn như /t-shirt/green
Một tham số truy vấn, chẳng hạn như /t-shirt?color=green
Nếu bạn sử dụng các tham số truy vấn tuỳ chọn để xác định các biến thể, hãy sử dụng URL bỏ qua tham số truy vấn làm URL chính tắc. Cách này có thể giúp Google hiểu rõ hơn về mối quan hệ giữa các biến thể sản phẩm.
Sử dụng URL trong nội dung
Để giúp Google Tìm kiếm và Google Mua sắm xác định chính xác sản phẩm của bạn cũng như mối quan hệ giữa các biến thể sản phẩm, hãy làm theo những phương pháp hay nhất sau đây khi sử dụng URL trong nội dung của bạn.
Sử dụng cùng một URL trong các đường liên kết nội bộ, tệp sơ đồ trang web và thẻ <link rel="canonical">.
Ví dụ: nếu bạn dùng một tham số truy vấn để liên kết đến trang đầu tiên trong một trình tự phân trang (trong đó trang mặc định là trang một), hãy đưa vào hoặc loại trừ ?page=1 trên URL một cách nhất quán trên toàn bộ trang web.
Dùng một thẻ <link rel="canonical"> tự tham chiếu (loại thẻ mà URL trong đó trỏ đến trang hiện tại) trên tất cả các trang có thể lập chỉ mục được và đưa những URL đó vào một tệp sitemap.
Đối với các sản phẩm có URL riêng cho mỗi biến thể, hãy dùng thẻ <link rel="canonical">để đưa URL sản phẩm chính tắc vào tất cả các trang biến thể. Để biết thêm thông tin, hãy xem thuộc tính canonical_link của Google Merchant Center.
Trực tiếp đưa các đường liên kết vào các trang bằng cách dùng thẻ <a href>; đừng dùng JavaScript để điều hướng giữa các trang. Có thể Googlebot sẽ không phát hiện được hoạt động điều hướng bằng mã JavaScript. Để biết thêm thông tin về cách thức Google xử lý JavaScript, hãy xem phần Tìm hiểu kiến thức cơ bản về SEO cho JavaScript.
Nếu được, hãy chèn văn bản có ý nghĩa giữa các thẻ <a href> và </a> (chẳng hạn như tên của sản phẩm được liên kết đến). Đừng dùng các cụm từ chung chung như "nhấp vào đây".
Tránh liên kết đến (hoặc ít nhất là lập chỉ mục) các trang không có nội dung hữu ích. Nếu một danh mục không có mục nào, hãy dùng thẻ metarobotsnoindex.
Nếu trang web của bạn phát hiện việc một danh mục bị trống và tự động xoá danh mục đó khỏi kết quả tìm kiếm và duyệt xem trên trang web, hãy xem xét việc trả về một mã trạng thái HTTP 404 (not found) cho trang đó.
Tài nguyên khác
Bạn muốn tìm hiểu thêm? Hãy tham khảo những tài nguyên sau:
[null,null,["Cập nhật lần gần đây nhất: 2025-08-04 UTC."],[[["\u003cp\u003eWell-structured URLs improve Google's ability to find and index your ecommerce site's pages, which is vital for visibility.\u003c/p\u003e\n"],["\u003cp\u003ePoorly designed URLs can lead to content being missed, duplicated, or perceived as infinite, hindering search engine crawling.\u003c/p\u003e\n"],["\u003cp\u003eOptimize URLs by minimizing alternatives for the same content, using descriptive words in paths, and following query parameter best practices.\u003c/p\u003e\n"],["\u003cp\u003eFor product variants, ensure each has a unique, identifiable URL using path segments or query parameters.\u003c/p\u003e\n"],["\u003cp\u003eUse consistent URLs in internal links, sitemaps, and canonical tags, while avoiding temporary parameters and JavaScript-based navigation for optimal indexing.\u003c/p\u003e\n"]]],["To optimize Google's crawling and indexing of ecommerce sites, ensure each page has a unique, descriptive URL. Minimize alternative URLs for the same content, avoid using fragment identifiers, and convert text to a consistent case. Use `?key=value` for query parameters, avoid duplicate parameters, and don't use temporary parameters. For product variants, assign each a separate URL using path segments or query parameters and utilize canonical URLs. Use consistent URLs in internal links, sitemaps, and `\u003clink rel=\"canonical\"\u003e` tags.\n"],null,["# Ecommerce URL Structure Best Practices | Google Search Central\n\nDesigning a URL structure for ecommerce websites\n================================================\n\n\nWell-designed URLs can help Google more efficiently locate and retrieve web pages on your\necommerce site. If you control the structure of your URLs (for example, you are building your\nown site from scratch), then this guide can help you decide on your URL structure to avoid\nindexing problems seen by Google on ecommerce sites.\n| If you're using an ecommerce platform, you can most likely skip this section, as the platform has most likely already considered these issues for you.\n\nWhy URL structure matters\n-------------------------\n\n\nA good URL design structure helps Google crawl and index your site, while a poor URL structure can lead to the following issues:\n\n-\n **Content can be missed** if Googlebot incorrectly thinks two URLs will return the same\n content as only one URL may be retrieved by the crawler (the other is discarded as a\n duplicate). This can happen if fragment identifiers (like `#fragment`) are\n used to show different content. Google does not use fragment identifiers in indexing.\n\n\n **Example:** `/product/t-shirt#black` and `/product/t-shirt#white`\n are considered to be the same page by Google.\n-\n **The same content may be retrieved multiple times** by the crawler if Google thinks two URLs\n are different but result in the same page being returned. This can slow down\n the crawling of your site and put additional load on your web server for no benefit.\n\n\n **Example:** `/product/black-t-shirt` and `/product?sku=1234` may return\n the same product page, but Google cannot determine this by looking at the URL alone.\n-\n **The crawler may think your site contains an infinite number of pages** if your URLs\n include a continually changing value such as a timestamp. As a result, Google may take\n longer to find all the useful content on your site.\n\n\n **Example:** `/about?now=12:34am` and `/about?now=12:35am` may be\n treated as different URLs by Google even though both URLs display the same page.\n\n\nSee [How Google Search Works](/search/docs/fundamentals/how-search-works)\nand [How Google's Site Crawlers Index Your Site](https://www.google.com/search/howsearchworks/crawling-indexing/)\nfor more information on how Google crawls and indexes your site.\n\nGood URL structure design best practices\n----------------------------------------\n\n\nTo optimize how Google crawls and indexes your website, follow these best practices on how to\nstructure your URLs.\n\n### General URL recommendations\n\n- Minimize the number of alternative URLs that return the same content to avoid Google making more requests to your site than needed. Google may not realize that two URLs return the same page until after both are retrieved.\n- If upper and lower case text in a URL is treated the same by the web server, convert all text to the same case so it is easier for Google to determine that URLs reference the same page.\n- Make sure each page in paginated results has a unique URL. We see the most URL mistakes in pagination URL structures.\n-\n Add descriptive words in URL paths. The words in URLs may help Google better understand the page.\n\n\n **Recommended** :\n `/product/black-t-shirt-with-a-white-collar`\n\n\n **Not recommended** :\n `/product/3243`\n\n### URL query parameter recommendations\n\n\nFollow these recommendations when using query parameters to help Google successfully crawl and\nindex your site.\n\n-\n Use `?key=value` URL parameters rather than `?value`, where possible.\n URL parameters allow Google Search to understand your site's structure and crawl and index more efficiently.\n\n\n **Recommended** :\n `/photo-frames?page=2`, `/t-shirt?color=green`\n\n\n **Not recommended** :\n `/photo-frames?2`, `/t-shirt?green`\n-\n Avoid using the same parameters twice. Googlebot may ignore one of the values otherwise.\n\n\n **Recommended** :\n `?type=candy,sweet`\n\n\n **Not recommended** :\n `?type=candy&type=sweet`\n-\n Avoid internally linking to temporary parameters, such as session-IDs, tracking codes,\n user-relative values (`location=nearby`, `time=last-week`), and\n the current time. This can result in URLs that have a short life or duplicate URLs\n for the same page. To get the best results from Google Search, use long-term, persistent\n URLs.\n\n\n **Recommended** :\n `/t-shirt?location=UK`\n\n\n **Not recommended** :\n `/t-shirt?location=nearby`, `/t-shirt?current-time=12:02`, `/t-shirt?session=123123123`\n\n### How Google understands URLs for product variants\n\n\nA common consideration on ecommerce sites is how to structure URLs when a product is available\nin multiple sizes or colors. Each combination of product attributes is referred to as a\n*product variant*. To help Google understand your product variants, make sure that each\nvariant can be identified by a separate URL. We recommend the following URL structures for variant URLs:\n\n- A path segment, such as `/t-shirt/green`\n- A query parameter, such as `/t-shirt?color=green`\n\nFor more information, see the [product variant structured data documentation](/search/docs/appearance/structured-data/product-variants).\n\n\nIf you use optional query parameters to identify variants, use the URL with the query\nparameter omitted as the [canonical URL](/search/docs/crawling-indexing/consolidate-duplicate-urls). This can help Google better understand the\nrelationship between product variants.\n\nUsing URLs in your content\n--------------------------\n\n\nTo help Google Search and Google Shopping correctly identify your products and the\nrelationship between product variants, follow these best practices when using URLs in your\ncontent.\n\n- Use the same URL in internal links, sitemap files, and [`\u003clink rel=\"canonical\"\u003e` tags](/search/docs/crawling-indexing/consolidate-duplicate-urls). For example, if linking to the first page in a paginated sequence using a query parameter where the default page is page one, either include or exclude `?page=1` on the URL throughout your site consistently.\n- Use a self-referencing [`\u003clink rel=\"canonical\"\u003e` tag](/search/docs/crawling-indexing/consolidate-duplicate-urls) (one where the URL in the tag points to the current page) on all indexable pages and include those URLs in a [sitemap](/search/docs/crawling-indexing/sitemaps/build-sitemap) file.\n- For products with unique URLs per variant, include the canonical product URL on all variant pages using a `\u003clink rel=\"canonical\"\u003e` tag. For more information, see [the `canonical_link` property of Google Merchant Center](https://support.google.com/merchants/answer/9340054).\n- Include links directly on the pages using `\u003ca href\u003e` tags; don't use JavaScript to navigate between pages. Googlebot might not detect navigation from JavaScript code. For more information about how Google processes JavaScript, see [Understand the JavaScript SEO basics](/search/docs/guides/javascript-seo-basics).\n- Include meaningful text between `\u003ca href\u003e` and `\u003c/a\u003e` tags where possible, such as the title of the product being linked to. Don't use generic phrases such as \"click here\".\n- Avoid linking to, or at least indexing, pages without useful content. If a category has no items, use a [`noindex` robots `meta` tag](/search/docs/crawling-indexing/robots-meta-tag#noindex). If your site detects that a category has become empty and automatically removes the category from on-site search and browse, consider returning a `404 (not found)` HTTP status code for the page.\n\nAdditional resources\n--------------------\n\n\nWant to learn more? Check out the following resources:\n\n- [Help Google understand your site structure](/search/docs/specialty/ecommerce/help-google-understand-your-ecommerce-site-structure)\n- [Avoid creating duplicate content](/search/docs/crawling-indexing/consolidate-duplicate-urls)\n- [Pagination, incremental page loading, and their impact on Search](/search/docs/specialty/ecommerce/pagination-and-incremental-page-loading)\n- [Managing crawling of faceted navigation URLs](/search/docs/crawling-indexing/crawling-managing-faceted-navigation)"]]