Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 关于url的简单问题_Html_Url_Web_Hyperlink - Fatal编程技术网

Html 关于url的简单问题

Html 关于url的简单问题,html,url,web,hyperlink,Html,Url,Web,Hyperlink,通常在我的网站中,我总是使用ajax,并且只刷新为网站的每个类别更改的div。所以url总是www.site.com 但是在这个url中:http://www.site.com/Services或http://www.site.com/Contacts 这意味着在.htaccess中省略了扩展名(如.html或.php) 谢谢http://www.site.com/Services通常实际上是http://www.site.com/Services/index.html或http://www.s

通常在我的网站中,我总是使用ajax,并且只刷新为网站的每个类别更改的div。所以url总是www.site.com

但是在这个url中:
http://www.site.com/Services
http://www.site.com/Contacts

这意味着在.htaccess中省略了扩展名(如.html或.php)


谢谢

http://www.site.com/Services
通常实际上是
http://www.site.com/Services/index.html
http://www.site.com/Services/index.php
其中的index.whatever默认为关闭


虽然我相信您可以在.htaccess中执行此操作,例如在本例中:,但如果您放置.html或.php,则会出现404错误。不总是这样。它也可以是Apache mod重写的URL。或
http://www.site.com/Services/default.aspx
或服务器认为是什么。是的,我认为
http://www.hmmusica.pt/Apresentacao
正在以某种方式使用apache重写url。看起来它使用的是Joomla,因为CMS可能为他们处理htaccess内容