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

Creating dynamic title tag based on URL parameters better for SEO than having just one title?

· 52CE 我爱测

I'm creating a translation web service, and wondering which approach will be better in terms of SEO. The app will allow users to translate between English, Spanish and French, using two select fields on the page (For "Source" and…

问题原文

原帖链接 · Sameer Zahid · CC BY-SA 4.0

I'm creating a translation web service, and wondering which approach will be better in terms of SEO. The app will allow users to translate between English, Spanish and French, using two select fields on the page (For "Source" and "Target" language options). Here are the two options that I see:

Option 1

Have one UCR and Page title for all translation options, like so:

  • url: example.com/translate. Page title: "Translate between English, Spanish and French".

Option 2

Have the page title and the select fields change based on the urls. Examples of what I mean:

  • url: example.com/translate?english-to-french. Page title: "Translate English to French".
  • url: example.com/translate?spanish-to-english. Page title: "Translate Spanish to English".

The "selected" option in the select fields will also change based on the URL parameters, with a total of 6 variants of the same page, and then I can let Google fetch these pages as different pages.

Which one will be better in terms of SEO?

PS: I plan on having several different languages, but have only given 3 for the sake of brevity.

已采纳解答

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

It's definitely a good idea to ensure that each unique URL points to a document with:

  • a unique <title>
  • a unique <meta name="description">
  • a unique set of <meta name="keywords"> (ignore the naysayers who encourage you to ignore this: optimising for Google isn't the beginning and the end of optimising for search, indexing and categorisation)
  • a unique <h1> top level heading

That said, these URLs:

  • mysite.com/translate?english-to-french
  • mysite.com/translate?spanish-to-english

aren't unique URLs. They're the same URL with different query-strings.

I'd suggest using something like this instead:

  • mysite.com/translate/english/french/
  • mysite.com/translate/spanish/english/

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

资料来源与适用范围

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

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

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