# 电商网站 URL 结构设计

> 来源：Google Search Central

---

** Snippets  **
  ** Images  **
  ** Videos  **
  ** Structured data  **
  ** Favicons  **

  * Site-specific guides
  ** Ecommerce  **
  ** International and multilingual sites  **

  * Data analysis
  ** Get started with Search Console  **
  ** Debug traffic drops  **
  ** Using Search Console and Google Analytics data for SEO  **
  ** Get started with Google Trends  **

[ Support ](https://developers.google.com/search/help) [ Blog ](https://developers.google.com/search/blog) [ What's new ](https://developers.google.com/search/news)

  ** All updates  **
  ** Documentation updates  **
  ** Ranking updates  **
  ** New YouTube videos  **
  ** Recent podcast episodes  **

[ Events ](https://developers.google.com/search/events) [ Case studies ](https://developers.google.com/search/case-studies) `/`

  * English
  * Deutsch
  * Español
  * Español – América Latina
  * Français
  * Indonesia
  * Italiano
  * Polski
  * Português – Brasil
  * Tiếng Việt
  * Türkçe
  * Русский
  * العربيّة
  * हिंदी
  * ภาษาไทย
  * 中文 – 简体
  * 中文 – 繁體
  * 日本語
  * 한국어

Sign in

  ** Documentation **

[Search Console](https://goo.gle/searchconsole) [ ](https://developers.google.com/search)

  ** Google Search Central **

  ** Documentation  **
    * More 
  ** Support  **
  ** Blog  **
  ** What's new  **
    * More 
  ** Events  **
  ** Case studies  **

  **Introduction**
  * Search Essentials
    **Overview**
    **Technical requirements**
    **Spam policies**
  * SEO fundamentals
    **SEO Starter Guide**
    **How Google Search works**
    **Creating helpful, reliable, people-first content**
    **Do you need an SEO?**
    **Maintaining your site's SEO**
    **Developer's guide to Search**
    **Get your website on Google**
    **Guidance on using generative AI**
  * Crawling and indexing
    **Overview**
    **File types Google can index**
    **URL structure**
    **Links**
    * Sitemaps
      **Learn about sitemaps**
      **Build and submit a sitemap**
      **Manage sitemaps with sitemap index file**
      * Sitemap extensions
        **Image sitemaps**
        **News sitemaps**
        **Video sitemaps and alternatives**
        **Combining sitemap extensions**
    * Crawler management
      **Ask Google to recrawl your URLs**
      **Troubleshoot crawl errors**
      * Google crawlers
        **List of Google crawlers**
        **Googlebot**
        **Reduce the Google crawl rate**
        **Verifying Googlebot and other Google crawlers**
    * robots.txt
      **Introduction to robots.txt**
      **How Google interprets the robots.txt specification**
    * Canonicalization
      **What is URL canonicalization**
      **How to specify a canonical URL with rel="canonical" and other methods**
      **Fix canonicalization issues**
    **Mobile site and mobile-first indexing**
    * AMP
      **AMP on Google Search guidelines**
      **Understand how AMP works in search results**
      **Enhance AMP content**
      **Validate AMP content**
      **Remove AMP content**
    * JavaScript
      **Understand the JavaScript SEO basics**
      **Fix search-related JavaScript problems**
      **Fix lazy-loaded content**
      **Dynamic rendering as a workaround**
    * Page and content metadata
      **Page metadata**
      * Meta tags
        **Meta tags and HTML attributes that Google supports**
        **Robots meta tag, data-nosnippet, and X-Robots-Tag**
        **noindex**
      **rel attributes**
    * Removals
      **Control what you share with Google**
      **Page removals**
      **Image removals**
      **Redacted information**
    * Site moves and changes
      **Redirects and Google Search**
      * Site moves
        **Changing your hosting**
        **Move a site with URL changes**
      **A/B testing**
      **Temporarily pause or disable a website**
  * Ranking and search appearance
    **Overview**
    **AI features**
    **Byline dates**
    **Favicons**
    **Featured snippets**
    **Flexible Sampling**
    **Google Discover**
    **Images**
    * Local features
      **Business details**
      **Top Places List**
      **Opting out of local search results**
    * Page experience
      **Understanding page experience**
      **Core Web Vitals**
      **Interstitials and dialogs**
      **Get started with signed exchanges on Google Search**
    **Preferred sources**
    * Ranking systems
      **A guide to Google Search ranking systems**
      **Reviews system**
    * Ranking updates
      **List of ranking updates**
      **Core updates**
      **Spam updates**
    **Site names**
    **Sitelinks**
    **Snippets**
    * Structured data
      **Understand how structured data works**
      **Structured data general guidelines**
      **Enriched search results**
      **Generate structured data with JavaScript**
      * Feature guides
        **All structured data features**
        **Article**
        **Book actions**
        **Breadcrumb**
        **Carousel**
        **Course list**
        **Dataset**
        **Discussion forum**
        **Education Q&A**
        **Employer aggregate rating**
        **Fact check**
        **Event**
        **FAQ**
        **Image metadata**
        **Job posting**
        **Local business**
        **Math solver**
        **Movie carousel**
        **Organization**
        * Shopping
          **Overview**
          **Product snippet**
          **Merchant listing**
          **Variants**
          **Loyalty program**
          **Merchant return policy**
          **Merchant shipping policy**
        **Profile page**
        **Q&A**
        **Recipe**
        **Review snippet**
        **Software app**
        **Speakable**
        **Subscription and paywalled content**
        **Vacation rental**
        **Video**
    **Title links**
    * Translated features
      **Translated results**
      **Ad networks and translation-related Google Search features**
    **Videos**
    **Visual Elements gallery**
    * Web Stories
      **Enable Web Stories on Google**
      **Best practices for creating Web Stories**
      **Web Story content policy**
    * Early Adopters Program
      **Package tracking**
      **Structured data carousels (beta)**
  * Monitoring and debugging
    **Debug drops in Search traffic**
    * Monitor with Search Console
      **Get started with Search Console**
      **Improve SEO with a bubble chart**
      **Using Search Console and Google Analytics data for SEO**
    * Debug with search operators
      **Overview**
      **site: search operator**
      **Google Images search operators**
    * Preventing and monitoring abuse
      **Overview**
      **Prevent user-generated spam**
      **Malware and unwanted software**
      **Prevent a malware infection**
      **Social engineering (phishing and deceptive sites)**
      **Google Safe Browsing Repeat Offenders Policy**
    **Get started with Google Trends**
  * Site-specific guides
    * Ecommerce
      **Overview**
      **Where content can appear**
      **Share product data**
      **Include structured data**
      **Launch a new website**
      **Write high quality reviews**
      **Design a URL structure**
      **Ecommerce site structure**
      **Pagination, incremental page loading, and Search**
    * International and multilingual
      **Overview**
      **Managing multi-regional and multilingual sites**
      **Tell Google about localized versions of your page**
      **How Google crawls locale-adaptive pages**
    * Explicit content
      **Guidelines for sites with explicit content**
      **What to do if your site is incorrectly flagged as explicit**

  * SEO fundamentals 
  ** Introduction  **
  ** Search Essentials  **
  ** SEO Starter Guide  **
  ** How Google Search Works  **
  ** Do you need an SEO?  **
  * Crawling and indexing 
  ** Sitemaps  **
  ** robots.txt  **
  ** Meta tags  **
  ** Crawler management  **
  ** Removals  **
  ** Canonicalization  **
  ** Redirects  **
  ** JavaScript SEO  **
  * Ranking and search appearance 
  ** Visual Elements gallery  **
  ** Title links  **
  ** Snippets  **
  ** Images  **
  ** Videos  **
  ** Structured data  **
  ** Favicons  **
  * Site-specific guides 
  ** Ecommerce  **
  ** International and multilingual sites  **
  * Data analysis 
  ** Get started with Search Console  **
  ** Debug traffic drops  **
  ** Using Search Console and Google Analytics data for SEO  **
  ** Get started with Google Trends  **

  ** All updates  **
  ** Documentation updates  **
  ** Ranking updates  **
  ** New YouTube videos  **
  ** Recent podcast episodes  **

  ** Home **
  ** Search Central **
  ** Documentation **

Send feedback  Designing a URL structure for ecommerce websites Well-designed URLs can help Google more efficiently locate and retrieve web pages on your ecommerce site. If you control the structure of your URLs (for example, you are building your own site from scratch), then this guide can help you decide on your URL structure to avoid indexing problems seen by Google on ecommerce sites.  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.  Why URL structure matters  A good URL design structure helps Google crawl and index your site, while a poor URL structure can lead to the following issues: 

  * Content can be missed if Googlebot incorrectly thinks two URLs will return the same content as only one URL may be retrieved by the crawler (the other is discarded as a duplicate). This can happen if fragment identifiers (like `#fragment`) are used to show different content. Google does not use fragment identifiers in indexing.  Example: `/product/t-shirt#black` and `/product/t-shirt#white` are considered to be the same page by Google. 
  * The same content may be retrieved multiple times by the crawler if Google thinks two URLs are different but result in the same page being returned. This can slow down the crawling of your site and put additional load on your web server for no benefit.  Example: `/product/black-t-shirt` and `/product?sku=1234` may return the same product page, but Google cannot determine this by looking at the URL alone. 
  * The crawler may think your site contains an infinite number of pages if your URLs include a continually changing value such as a timestamp. As a result, Google may take longer to find all the useful content on your site.  Example: `/about?now=12:34am` and `/about?now=12:35am` may be treated as different URLs by Google even though both URLs display the same page. 

See [How Google Search Works](/search/docs/fundamentals/how-search-works) and [How Google's Site Crawlers Index Your Site](https://www.google.com/search/howsearchworks/crawling-indexing/) for more information on how Google crawls and indexes your site.  Good URL structure design best practices  To optimize how Google crawls and indexes your website, follow these best practices on how to structure your URLs.  General URL recommendations 

  * 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. 
  * 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. 
  * Make sure each page in paginated results has a unique URL. We see the most URL mistakes in pagination URL structures. 
  * Add descriptive words in URL paths. The words in URLs may help Google better understand the page.  Recommended: `/product/black-t-shirt-with-a-white-collar` Not recommended: `/product/3243`

URL query parameter recommendations  Follow these recommendations when using query parameters to help Google successfully crawl and index your site. 

  * Use `?key=value` URL parameters rather than `?value`, where possible. URL parameters allow Google Search to understand your site's structure and crawl and index more efficiently.  Recommended: `/photo-frames?page=2`, `/t-shirt?color=green` Not recommended: `/photo-frames?2`, `/t-shirt?green`
  * Avoid using the same parameters twice. Googlebot may ignore one of the values otherwise.  Recommended: `?type=candy,sweet` Not recommended: `?type=candy&type=sweet`
  * Avoid internally linking to temporary parameters, such as session-IDs, tracking codes, user-relative values (`location=nearby`, `time=last-week`), and the current time. This can result in URLs that have a short life or duplicate URLs for the same page. To get the best results from Google Search, use long-term, persistent URLs.  Recommended: `/t-shirt?location=UK` Not recommended: `/t-shirt?location=nearby`, `/t-shirt?current-time=12:02`, `/t-shirt?session=123123123`

How Google understands URLs for product variants  A common consideration on ecommerce sites is how to structure URLs when a product is available in multiple sizes or colors. Each combination of product attributes is referred to as a product variant. To help Google understand your product variants, make sure that each variant can be identified by a separate URL. We recommend the following URL structures for variant URLs: 

  * A path segment, such as `/t-shirt/green`
  * A query parameter, such as `/t-shirt?color=green`

For more information, see the [product variant structured data documentation](/search/docs/appearance/structured-data/product-variants).  If you use optional query parameters to identify variants, use the URL with the query parameter omitted as the [canonical URL](/search/docs/crawling-indexing/consolidate-duplicate-urls). This can help Google better understand the relationship between product variants.  Using URLs in your content  To help Google Search and Google Shopping correctly identify your products and the relationship between product variants, follow these best practices when using URLs in your content. 

  * Use the same URL in internal links, sitemap files, and [`<link rel="canonical">` 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. 
  * Use a self-referencing [`<link rel="canonical">` 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. 
  * For products with unique URLs per variant, include the canonical product URL on all variant pages using a `<link rel="canonical">` tag. For more information, see [the `canonical_link` property of Google Merchant Center](https://support.google.com/merchants/answer/9340054). 
  * Include links directly on the pages using `<a href>` 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). 
  * Include meaningful text between `<a href>` and `</a>` tags where possible, such as the title of the product being linked to. Don't use generic phrases such as "click here". 
  * 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. 

Additional resources  Want to learn more? Check out the following resources: 

  **Help Google understand your site structure**
  **Avoid creating duplicate content**
  **Pagination, incremental page loading, and their impact on Search**
  **Managing crawling of faceted navigation URLs**

Send feedback  Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2025-12-10 UTC. Need to tell us more?  [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-10 UTC."],[],["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"]] 

  ** LinkedIn  ** Join us on LinkedIn
  ** YouTube  ** Watch our videos
  ** Blog  ** Subscribe to our RSS feed
  ** Podcast  ** Listen to Search Off the Record
  ** X (Twitter)  ** Join us on X (Twitter)

  * Get support
    ** Go to the help forum **
    ** Submit a question for office hours **
    ** Report spam, phishing, or malware **
    ** More support resources **
  * Resources
    ** Do you need an SEO? **
    ** SEO Starter Guide **
    ** Status of Search systems **
    ** Search Console documentation **
    ** Case Studies **
  * Tools
    ** Search Console **
    ** Rich Results Test **
    ** PageSpeed Insights **
    ** AMP Test **

[ ](https://developers.google.com/)

  ** Android **
  ** Chrome **
  ** Firebase **
  ** Google Cloud Platform **
  ** Google AI **
  ** All products **

  ** Terms **
  ** Privacy **
  * Manage cookies 

  * English
  * Deutsch
  * Español
  * Español – América Latina
  * Français
  * Indonesia
  * Italiano
  * Polski
  * Português – Brasil
  * Tiếng Việt
  * Türkçe
  * Русский
  * العربيّة
  * हिंदी
  * ภาษาไทย
  * 中文 – 简体
  * 中文 – 繁體
  * 日本語
  * 한국어
