I have quite a complex .htaccess with 30 redirect rules. Now the client wants to add language specific parts to the beginning of the urls.
Example: http://example.eu/sale
should be http://example.eu/de/sale
where "de" is the language code for one of the 5 languages.
I've found this:
RewriteRule ^(en|de|fr|ja|ru)/(.*)$ $2?language=$1 [L,QSA]
Is there a simple way to add this feature to existing rules? (Below is some of the existing rules)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.eu$ [NC]
RewriteRule (.*) http://example.eu/$1 [R=301,L]
RewriteRule ^sale sale.php [NC]
RewriteRule ^brands/([^/]+) /designer.php?idnr=$1 [NC]
RewriteRule ^product/([^/]+)/([^/]+) /product.php?pid=$1&fsite=$2 [NC]