mod rewrite - mod_rewrite not redirecting for multilingual site when trailing slash missing -
I am currently developing a multilingual website. User URL can be used on the front page with the following format:
http://example.com/en/ http://example.com/fr/
The problem is here
>
Rewriteum ^ /? ([^. /] +) / (. *) $ $ 2? Lang = $ 1 [L, QSA]
Try it out:
< Pre> revwrite ^ /? ([Az] {2}) (/ (. *))? $$ 3? Lang = $ 1 [L, QSA]
Another option would be to redirect if the trailing slash is missing:
RewriteRule ^ /? [Az] {2} $% {REQUEST_URI} / [L, R = 301]
Comments
Post a Comment