Forum Moderators: phranque
http://fr\.domain\.com [L] example.com/index.php example.com/ example.com/ /index.php example.com/ example.com/ /index.php GET /?country=FR HTTP/1.1 GET /index.php?country=FR HTTP/1.1 .htaccess, the leading folder names and the trailing slash are stripped before being presented to the RegEx parser. example.com/ and example.com// alike. ^(.*)\.php$ is very ineffficent. Never use (.*) at the beginning of a pattern. ^([^/.]+)\.php$ ^(([^/]+/)*[^/.]+)\.php$
#MENU AU
RewriteCond %{HTTP_HOST} ^au\.example\.com
RewriteRule ^([^/.]+)\.php$ $1.php?country=AU [L]
#MENU DE
RewriteCond %{HTTP_HOST} ^de\.example\.com
RewriteRule ^([^/.]+)\.php$ $1.php?country=DE [L]