没有文件扩展名的网站网址? [英] websites urls without file extension?
问题描述
当我查看 Amazon.com 并看到他们的页面 URL 时,它没有 .htm
、.html
或 .php
> 在 URL 的末尾.
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.
就像:
http://www.amazon.com/books-used-books-textbooks/b/ref=topnav_storetab_b?ie=UTF8&node=283155
为什么以及如何?那是什么类型的扩展?
Why and how? What kind of extension is that?
推荐答案
您的浏览器不关心文件的扩展名,只关心服务器报告的内容类型.(好吧,除非您使用 IE,因为在 Microsoft,他们认为他们比您更了解您提供的服务).如果您的服务器报告所提供的内容是 Content-Type: text/html,那么无论文件名是什么,您的浏览器都应该将其视为 HTML.
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.
这篇关于没有文件扩展名的网站网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!