且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Firebase托管中实施.htaccess配置?

更新时间: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"
  } ]
}