I want to create a single page app but with a twist: deliver a pre-built html based on Language.
After reading the docs, I came up with this _redirects file:
/* /pt.html 200 Language=pt /* /en.html 200
It kind of works… let me explain.
My browsers default language is ‘pt’ and when I get to the page it delivers the pt.html content but, if I try to get /main.css it also gives me pt.html content. If I create a “vf_lang” cookie, /main.css renders the corresponding existing file.
Maybe I’m having the wrong approach here but regardless, it seems that, having Language condition breaks the default behavior regarding existing files.
You can test this behaviour in: