Rewrite mode and Logout problem
Hello to all,
I have activated rewrite engine to exclude index.php out of URL. I have also decided not to use suffix at all and also to have www prefix added when it's not stated. But, now I have problem with Back End login/logout. After I click on Logout button, I am redirected to Back End login page again, but now, it generates 404 page.
Redirection should go to page domain.com/contao/index.php, but now I am getting www.domain.com/sr-BA/contao/
I think that I have to exclude language part of URL in that case, but I am not sure what Cond to add:
RewriteCond %{REQUEST_URI} !^/contao/$ [NC]
RewriteRule ^[a-z]{2}/$ index.php [L]
RewriteRule ^([a-z]{2})$ $1/ [R=301,L]