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

Should URLs omit a parameter with the default value like ?page=1

· 52CE 我爱测

I have a blog and its URLs are paginated like www.example.com/blog?page=x I have pagination to create these links: www.example.com/blog?page=1 www.example.com/blog?page=2 www.example.com/blog?page=3 But then I thought about makin…

问题原文

原帖链接 · Mark Elvis · CC BY-SA 4.0

I have a blog and its URLs are paginated like

www.example.com/blog?page=x

I have pagination to create these links:

www.example.com/blog?page=1
www.example.com/blog?page=2
www.example.com/blog?page=3

But then I thought about making the page=1 to be the default link without the page parameter like this

www.example.com/blog
www.example.com/blog?page=2
www.example.com/blog?page=3

The same goes for rewritten URLs like www.example.com/blog/x. Should the first page be /blog/ or /blog/1?

Which way is better for SEO?

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 4.0

URLs don't matter that much for SEO as long as your are consistent about it. 99% of the advantage of creating "SEO friendly" URLs is that it makes you think about what the URLs should be and makes you double check that you always use them the same way.

The worst thing that you can do for SEO with URLs is link to multiple versions of the URL that show the same content without doing any URL canonicalization. So for page 1, all these URLs with probably work:

  • /blog
  • /blog/
  • /blog/?page=1
  • /blog/1
  • /blog/?page=1&tracking=xyz
  • /blog/1?tracking=xyz

You need to make sure that:

  • You pick one of these URLs as your favorite "canonical" URL.
  • Every time you link to your first page, you use your chosen version.
  • If other versions of the URL get discovered by search engine crawlers you should use redirects, canonical link meta tags, or sitemaps to tell search engines about the preferred version.

Which specific version you choose doesn't matter much for SEO. URLs don't seem to be much of a direct ranking signal to Google these days. I see some very complex and not-user-friendly URLs ranking in Google when I search.

Even if it isn't a search engine ranking factor, you should pay attention to usability when you choose your URLs. Your URLs should be:

  • Descriptive
  • Short
  • Memorable
  • Easy to type
  • Consistent

That means that you should use the simplest version of the URL that conveys some meaning about the content of the page and is somewhat like your other URLs. For page 1 I would go with /blog/, personally.

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

资料来源与适用范围

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

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

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