在我的网站网址末尾隐藏.html

时间:2020-05-18 21:41:39

标签: java html css .htaccess

我尝试使用.htaccess文件中的此代码删除URL末尾的.html,但它仍然表示我在加载其他页面时缺少该文件。

application/
├── __init__.py
├── app.py
├── lib/
|   ├── __init__.py
│   └── logger.py
└── api/
    ├── __init__.py
    └── my_api.py

1 个答案:

答案 0 :(得分:0)

只需将其命名为index.html,然后创建文件夹并在其中创建索引即可。

因此,例如,如果您要website.com/home,请在public_html内创建一个文件夹,并将其命名为home,然后对该文件进行索引。