Remove file extensions for html files in firebase
问题 In firebase.json , is there a way to rewrite (not redirect) all requests to the corresponding .html file but leave other extensions? for example, https://example.com/foo will be the same as https://example.com/foo.html . But https://example.com/data will not be the same as https://example.com/data.xml . 回答1: This is the cleanUrls option (as in the docs) in firebase.json : { "hosting": { "cleanUrls": true } } 来源: https://stackoverflow.com/questions/60681599/remove-file-extensions-for-html