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
Apache 不带文件扩展名的URL不带mod_重写_Apache_Url_File Extension - Fatal编程技术网

Apache 不带文件扩展名的URL不带mod_重写

Apache 不带文件扩展名的URL不带mod_重写,apache,url,file-extension,Apache,Url,File Extension,在我的服务器上,当我访问文件http://example.com/file.php带有URLhttp://example.com/file,它仍然显示正确的文件,尽管我没有任何URL重写的.htaccess 我可以依靠它跨所有(当前)浏览器工作吗?您的httpd配置中可能有mod_协商/Options+多视图。您所描述的协商不应该依赖于浏览器。谢谢。我在共享服务器上,无法访问httpd配置文件。有没有办法找出这些设置是什么?

在我的服务器上,当我访问文件
http://example.com/file.php
带有URL
http://example.com/file
,它仍然显示正确的文件,尽管我没有任何URL重写的.htaccess


我可以依靠它跨所有(当前)浏览器工作吗?

您的httpd配置中可能有mod_协商/Options+多视图。您所描述的协商不应该依赖于浏览器。

谢谢。我在共享服务器上,无法访问httpd配置文件。有没有办法找出这些设置是什么?