地址栏中的Localhost地址

时间:2014-02-12 17:08:27

标签: jsp java-ee tomcat servlets localhost

当我输入以下网址

http://localhost:8080/helloapp (no slash in last position)

在地址栏中按回车键,会自动显示

http://localhost:8080/helloapp/ (note the slash at last position)

为什么这意味着?

http://localhost:8080/helloapphttp://localhost:8080/helloapp/是一样的吗?

我正在使用tomcat。

2 个答案:

答案 0 :(得分:0)

它们是相同的,这很可能是由于php或apache设置强制尾随/

这是seo中常见的做法,可以防止重复内容。

答案 1 :(得分:0)

它恰当的是什么是apache设置剂量。但是对我来说是什么呢?

  • 尾部斜杠应指示其文件夹
  • 没有它应该表示为文件
相关问题