• by necovek on 3/1/2023, 6:30:26 AM

    I think Apache web server supported setting Content-Language automatically and doing content negotiation based on Accept-Language (browser-set language) for static sites if you simply used index.es.html.

    It's been a long time since I used this, so check the specifics.

  • by mytailorisrich on 3/1/2023, 6:45:45 AM

    I think #3 is the most elegant and generic, and you can still use TLDs in addition. It also works well for a static website.