Can a URL have an asterisk?

后端 未结 3 1765
自闭症患者
自闭症患者 2020-12-05 18:13

I notice Wikipedia allows them in their URLs, is it legit or does anyone know where it will give me problems?

3条回答
  •  爱一瞬间的悲伤
    2020-12-05 19:05

    As per http://www.ietf.org/rfc/rfc1738.txt YES, you can.

    ...Only alphanumerics [0-9a-zA-Z], the special characters "$-_.+!*'()," [not including the quotes - ed], and reserved characters used for their reserved purposes may be used unencoded within a URL.

    refer: http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

提交回复
热议问题