Hello,
I have a problem to manage languages on my website.
The default language is French, rewritting The url works on almost all pages. When I put my site in English, url rewrinting works everywhere.
For example:
in version by default page:
http://localhost/reservation-hotel/login.html sends me a 404, I am forced to manually change the url:
http://localhost/reservation-hotel/fr/login.html for failing to error.
While in the English version, I manage to disconnect Desuite, the URL that appears is:
http://localhost/reservation-hotel/en/login.html.
Here is my. httaccess:
RewriteEngine ON
RewriteBase /reservation-hotel/
RewriteCond %{QUERY_STRING} !mylang=[english|french]{2,}
#RewriteRule ^([en]{2})/(.*)$ /index.php?mylang=english [QSA,L]
#RewriteRule ^([fr]{2})/(.*)$ /index.php?mylang=french [QSA,L]
RewriteRule ^([fr]{2})/(.*)$ /reservation-hotel/index.php?mylang=french [QSA,L]
RewriteRule ^([en]{2})/(.*)$ /reservation-hotel/index.php?mylang=english [QSA,L]
RewriteRule ^(administrator/|bridges/|cache/|components/|editor/|help/|images/|includes/|language/|mambots/|media/|modules/|templates/|tmpr/) - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/ index.php
thank