问题
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