I have a strange problem using .htaccess RewriteEngine.
I have this simple rule:
RewriteEngine On
RewriteRule ^(.\*)/(.\*).php$ pages/test.php?lang1=$1&page1=$2 [L]
In pages/test.php I put this php code:
echo('lang: '.$_GET['lang1'].'< br />');
echo('page: '.$_GET['page1'].'< br />');
echo('querystring: '.$_SERVER['QUERY_STRING']);
So, when calling http://test.local/en-US/something.php, I would expect something like:
lang: en-US
page: something
querystring: lang1=en-US&page1=something
Instead, this is the weird output I get from the page:
lang: pages
page: test
querystring: lang1=pages&page1=test
Can someone help me out?