# #javascript #firebase #firebase-hosting
Вопрос:
Я пытаюсь удалить расширение .html на хостинге firebase, оно работает ниже 5 страниц, если я добавлю более 5 страниц .расширение html не работает.. и как получить доступ к пути к вложенной папке, например «/products/item.html»
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "/login.html",
"destination": "/login",
"type" : 301
},
{
"source": "/products/item.html",
"destination": "/products/item",
"type" : 311
}
],
"redirects": [
{
"source": "/login",
"destination": "/login.html"
},
{
"source": "/products/item",
"destination": "/products/item.html"
}
]
}
}
Комментарии:
1. По какой причине вы не используете
cleanUrl
свойство, которое показано здесь? firebase.google.com/docs/hosting/…