更新时间:2023-09-12 11:39:22
You can't use .htaccess
in Firebase hosting, but you can configure it to rewrite, redirect, cache, etc.
在此处了解如何自定义托管行为.
您的.htaccess
将被翻译为
"hosting": {
"rewrites": [ {
"source": "**/!(*.css|*.js|*.map|*.jpg|*.gif|*.png|*.php)",
"destination": "/index.html"
} ]
}