I need to rewrite this url:
mysyte.com/index.php?lang=it
to:
mysite.com/it/index
without rewriting css href, javascript src and image src. I tried many solutions but none worked, could someone help me?
thanks!
edit:
I tried:
RewriteEngine On
RewriteRule ^(.*)/(.*) $2.php?lang=$1
but this overwrites my css calls too.
then I tried:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)/(.*) $2.php?lang=$1
with the same result