I've been reading some info about htaccess redirecting and I would like to check if I understand it correct.
I'm building a new site and I want to accomplish the following:
site.com/en/somefile.php -> site.com/somefile.php?lanuage=en
site.com/fr/somethingelse.html -> site.com/somethingelse.html?language=fr
I have built the following:
RewriteRule ^(.+)/(.+)\.(.+) $2\.$3\?Language=$1 [NC]
would this work? I'm not sure about the use of '$' the variables..
Also I've seen one example but that one used a lot of php code and htaccess code.. so that made me doubt if the above is possible.. just that simple, or that I am missing something.
thanks for the responses!