I\'m trying to rewrite an url from:
http://domain.com/aa/whatever/whatever.php to http://domain.com/whatever/whatever.php?language=aa
However, de
You could setup the URL rewrite to pass the language to the php script via the PATH_INFO element of the $_SERVER superglobal. Just pass the language to the script like so:
foobar.php/en?args
In this case, $_SERVER[PATH_INFO] would equal /en