如何使用 htaccess 删除 html 的索引扩展

How to remove index extension for html using htaccess

如何使用 htacces 删除 html 索引?

当人们键入 main url 时,它会自动转到没有页面扩展名称的页面。

例子 www.abc.com/home.html 变成 www.abc.com only

我尝试搜索文件,但只隐藏了扩展名。 如何隐藏页面名称?

when people type main url, it automatic go to the page without the page extention name.

Example www.abc.com/home.html to become www.abc.com only

将文件重命名为 index.html,然后您就可以在默认配置下使用大多数 Web 服务器获得此“免费”;当请求目录时,它们将自动查找名为 index.htm(l)index.php 的文件。