Firebase hosting rewrite rules based on language of browser

泄露秘密 提交于 2020-04-18 03:51:31

问题


I have a Firebase hosted website that contains an index_fr.html and index_nl.html. How can I create a rewrite rules that uses the user agent language to serve the correct index_nl or index_fr page (without using Firebase functions)?


回答1:


Firebase Hosting rewrites are based on the requested path only. There is not support for such conditional rewrites in the Firebase Hosting configuration.

You might want to file a feature request for it.



来源:https://stackoverflow.com/questions/59251596/firebase-hosting-rewrite-rules-based-on-language-of-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!