Web 在他们自己的文件夹中为每个页面使用index.html来获得干净的URL

Web 在他们自己的文件夹中为每个页面使用index.html来获得干净的URL,web,seo,directory-structure,clean-urls,Web,Seo,Directory Structure,Clean Urls,我想知道他们把每个网页作为一个index.html放在自己的文件夹中以获得干净的URL是否有什么问题。您只需链接到目录,index.html将自动提供,无需重新编写mod_。例如,没有: . |-about.html url: example.com/about.html |-contact.html url: example.com/contact.html |-index.html url: example.com 你可以: . |-about |

我想知道他们把每个网页作为一个index.html放在自己的文件夹中以获得干净的URL是否有什么问题。您只需链接到目录,index.html将自动提供,无需重新编写mod_。例如,没有:

 .
 |-about.html     url: example.com/about.html
 |-contact.html   url: example.com/contact.html
 |-index.html     url: example.com
你可以:

 .
 |-about
 |    \-index.html   url: example.com/about/
 |-contact
 |    \-index.html   url: example.com/contact/
 |-index.html        url: example.com/

我找不到任何关于这个的好搜索结果。他们做这样的事有什么我没有预料到的问题吗?关于SEO呢?

创建domain.com/contact.html并使用.htaccess文件截断.html更容易,因此您的URL将是domain.com/contact-无需创建文件夹