是“&"允许 url 段内的字符? [英] Is "&" character inside url segment allowed?

查看:36
本文介绍了是“&"允许 url 段内的字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是&"url 中的字符允许吗?如果它是非法的并且存在,对 url 有什么影响.我正在从 SEO 的角度寻找答案.

Is "&" character in url allowed? What is the impact to url if it's illegal and is present. I'm looking for an answer from an SEO standpoint.

示例:

rootdomain.com/Black&Decker/products

rootdomain.com/Black&Decker/products

推荐答案

它被允许(在其他地方)作为分隔 GET 中指定参数的一部分,例如

It's permitted (amongst other places) as part of separating specified parameters in a GET e.g.

http://example.com/query?a=1&b=2

定义了a=1 b=2.

请注意 &是 RFC3986 下的 保留 字符.有关百分比编码的更多详细信息,请参阅此维基百科条目.

Note that & is a reserved character under RFC3986. See this Wikipedia entry on percent encoding for more details.

这篇关于是“&"允许 url 段内的字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆