websites urls without file extension?

后端 未结 10 1799
误落风尘
误落风尘 2020-12-16 14:50

When I look at Amazon.com and I see their URL for pages, it does not have .htm, .html or .php at the end of the URL.

It is lik

10条回答
  •  情深已故
    2020-12-16 15:15

    Your browser doesn't care about the extension of the file, only the content type that the server reports. (Well, unless you use IE because at Microsoft they think they know more about what you're serving up than you do). If your server reports that the content being served up is Content-Type: text/html, then your browser is supposed to treat it like it's HTML no matter what the file name is.

提交回复
热议问题