I am stuck trying to write a rewrite rule for my htaccess file which should forward from for example http://www.example.com/en to http://www.example.com/en/
I tried: RewriteRule ^en/?$ en [L]
but nothing happens. Does someone have an idea how to accomplish this?
You can use following rules in your .htaccess file:
This will:
/ento/en/and internally redirect this to/index.php?lang=en/fr/loginto/index.php?action=login&lang=frAdditionally: As per your comment you will need this rule to add www in domain: