I want to redirect users to an error page if they enter any URL not starting with 'en' or 'fr'. I cannot figure out how to express this as a RewriteCond / RewriteRule.
To be clearer, some examples:
http://mysite.com/en/foo/ ==> Cool, do nothing
http://mysite.com/fr/foo/ ==> Cool, do nothing
http://mysite.com/foo/ ==> ERROR, redirect to /404/index.php
http://mysite.com/blah/foo/ ==> ERROR, redirect to /404/index.php
I'm sure it must be pretty simple but I could not find this specific scenario addressed. Thanks for your time.