Preventing trailing slash on domain name

前端 未结 4 1574
一整个雨季
一整个雨季 2021-01-19 07:48

I want my site to show up as www.mysite.com, not www.mysite.com/

Does Apache add a trailing slash after a domain name by default, o

4条回答
  •  臣服心动
    2021-01-19 08:28

    http://www.searchenginejournal.com/linking-issues-why-a-trailing-slash-in-the-url-does-matter/13021/

    http://www.alistapart.com/articles/slashforward/

    URLs were initially used to model directories, so the trailing slash was required. I think if you don't have the trailing slash some webservers will not be able to find the content correctly.

提交回复
热议问题