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
使用htaccess从url中删除文件名_Url_Rewrite - Fatal编程技术网

使用htaccess从url中删除文件名

使用htaccess从url中删除文件名,url,rewrite,Url,Rewrite,我有一个单页网站 我希望它能读到buncylouge.com/,而不是最后的文件夹和index.html 如何使用htaccess执行此操作?您可以在htaccess中使用此选项: DirectoryIndex /parallax-page/index.html 您可以在htaccess中使用此选项: DirectoryIndex /parallax-page/index.html 如果这是视差页面文件夹中唯一的index.html,那么这是一个优雅的解决方案。如果没有危险;-)如果这

我有一个单页网站

我希望它能读到buncylouge.com/,而不是最后的文件夹和index.html


如何使用htaccess执行此操作?

您可以在htaccess中使用此选项:

 DirectoryIndex /parallax-page/index.html

您可以在htaccess中使用此选项:

 DirectoryIndex /parallax-page/index.html

如果这是视差页面文件夹中唯一的index.html,那么这是一个优雅的解决方案。如果没有危险;-)如果这是视差页面文件夹中唯一的index.html,那么这是一个优雅的解决方案。如果没有危险;-)如果这是视差页面文件夹中唯一的index.html,那么这是一个优雅的解决方案。如果没有危险;-)