大网数据广告活动
网站运营与故障问答

Do URL parameters create different URLs from Google's SEO perspective?

· 52CE 我爱测

I have the following 4 URLs. Are all these the same URL or different URLs from Google's SEO perspective? (Having a different query string makes it another URL?) https://www.example.com/buy-web-products?task=domaincheck&Itemid=435…

问题原文

原帖链接 · Mani · CC BY-SA 3.0

I have the following 4 URLs. Are all these the same URL or different URLs from Google's SEO perspective? (Having a different query string makes it another URL?)

  • https://www.example.com/buy-web-products?task=domaincheck&Itemid=435
  • https://www.example.com/buy-web-products
  • https://www.example.com/buy-web-products?task=domaincheck&Itemid=435&req_order=ordernow&p=133&pre=1
  • https://www.example.com/buy-web-products?task=domaincheckstep2&Itemid=435

已采纳解答

原帖链接 · DocRoot · CC BY-SA 4.0

Yes, those are all different URLs and are therefore different from Google's SEO perspective.

However, if these URLs return the same content (perhaps just displayed/sorted differently) then you need to canonicalise the URL by setting a rel="canonical" link element in the head section of the relevant HTML document. This is to ensure that only the canonical URL is returned in the search results. For example:

<link rel="canonical" href="https://www.example.com/buy-web-products">

Alternatively, you can set a rel="canonical" HTTP response header. For example:

Link: <https://www.example.com/buy-web-products>; rel="canonical"

Within Google Search Console (GSC), you can also tell Google which URL parameters to ignore (if you are unable to set the canonical URL). However, this only informs Google, you may still want to consider other search engines.

You can also block certain URL parameters from being crawled using robots.txt (consequently they are unlikely to be indexed). However, this doesn't attribute a canonical URL that should be returned instead.

Reference:

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2017-11-21)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。