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

Can keywords in the URL path be separated by commas for Google?

· 52CE 我爱测

As we know, keywords in the URL are helpful with your SEO, for example, /keyword1-keyword2 , or keyword1_keyword2 . We know that Google is able to identify the two keywords. However, what if it was more like, /url=keyword1,keywor…

问题原文

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

As we know, keywords in the URL are helpful with your SEO, for example, /keyword1-keyword2, or keyword1_keyword2. We know that Google is able to identify the two keywords.

However, what if it was more like, /url=keyword1,keyword2 ?

Would they also be read by Google?

已采纳解答

原帖链接 · Josip Ivic · CC BY-SA 3.0

Browser will encode input, according to the character-set used in your page.

I personally avoid , in url structure, because of encoding. It's %2C.

So your url would be like /url=keyword1%2Ckeyword2.

Commas are allowed in the filename part of a URL, but are reserved characters in the domain.

* From the URI RFC:

2.2. Reserved Characters

Many URI include components consisting of or delimited by, certain special characters. These characters are called "reserved", since their usage within the URI component is limited to their reserved purpose. If the data for a URI component would conflict with the reserved purpose, then the conflicting data must be escaped before forming the URI.

 reserved    = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
                "$" | ","

The "reserved" syntax class above refers to those characters that are allowed within a URI, but which may not be allowed within a particular component of the generic URI syntax

While it's definitely possible to use commas in URLs, it's not a widely used practice, nor is it recommended.

Further reading: https://www.searchenginenews.com/sample/content/are-you-using-commas-in-your-urls-heres-what-you-need-to-know

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

资料来源与适用范围

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

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

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