samedi 26 novembre 2016

htaccess rewrite: choose rule based on language

6 hours of reserach and experiments to figure out what i think is simple - and no effect, so I'm must ask:

I have domain www.example.com in htaccess file, there is redirect implemented to non-www version example.com.

What i need to do is redirect it further based on user language, like so:

IF user language is "X" THAN DO NOTHING (keep: example.com) ELSE (any other language) REWRITE TO http://ift.tt/2fCGrNh

Could any of you wonderfully skilled stackoverflow users help me with this?

Aucun commentaire:

Enregistrer un commentaire