I’m having an issue with a format of URL.
I need to send
/en
to /
The problem is that I need only /en (exactly), not /en/foo…
I know how to do it with string that ends with .html, but here I have other URLS that have /en/stuff and they are also matched.
Would really appreciate assistance…
You need to specify end of string in
RewriteConde.g.Please note that Condition pattern as well as Rewrite Rule pattern are a perl compatible regular expression (with some additions):
For Anchors:
EDIT
BTW, there is very nice htaccess tester at http://htaccess.madewithlove.be/ which you could use to test the rules.