How to set two Languages in htaccess

Hi,

I would like have everything inside one folder to be one language (es) and everything else to be english.

example:

example.com/es/ ← to be es

example.com ← to be en

when i set in htaccess in root directory to be english like this:

<ifModule mod_headers.c> Header set Content-language: en </IfModule>

and inside the directory folder /es/ like this:

<ifModule mod_headers.c> Header set Content-language: es </IfModule>

the files in /es/ stay in “en”
if I remove the ** Header set Content-language: en** in the root directory then the es directory shows the “es”

How can I make it work for both?

Thanks

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.