I have changed my language code in URL from 3 to 2.So I want to redirect any old url to the new url through .htaccess
Example : I want to change the URL -
1) http://example.com/eng/News to http://example.com/en/News
2) http://example.com/deu/News to http://example.com/de/News
I am using CakePHP and this is the default .htaccess
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
I tried using this :
RewriteRule (.*)/deu/(.*) $1/de/$2 [L]
But it didn't work. Can anyone help?