Do web browsers always send a trailing slash after a domain name?

后端 未结 4 485
广开言路
广开言路 2020-11-29 08:36

Is there consistency and/or a standard on how browsers send a url to a host related to trailing slashes?

Meaning, if I type in http://example.com in the

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 08:57

    Note that it's a very different matter when the URL has a path element:

    http://example.com/dir
    

    is a different URL than

    http://example.com/dir/
    

    and could in fact contain different content, and have a different search engine ranking.

提交回复
热议问题