-3

Hi, momently I turn my Website to an multilanguage Website. Problem: I would like to Read the locale of the user from an GET variable. So the htaccess must write this locale at the end.

If this question already exists please send me the link, or is there an simpler way for the local tell it me.

Daniel O.
  • 41
  • 7
  • 1
    Nothing to do with php, also [What have you tried?](http://mattgemmell.com/what-have-you-tried/) – Epodax Oct 21 '15 at 12:07

1 Answers1

0

You could do that using ModRewerite

RewriteCond %{QUERY_STRING} !locale=
RewriteRule ^(.+)$ $1?locale=DE [QSA,NC,L]
Amit Verma
  • 40,709
  • 21
  • 93
  • 115
Andreas Linden
  • 12,489
  • 7
  • 51
  • 67