remove default language from url
Permalink 1 user found helpful
My SEO guy is asking if there's any way to remove /en/ from the url, as that's the default locale, but show /de etc for other languages? Was thinking there must be URL rewrite in .htaccess, but can't seem to get it to work.

Further to my last message, my idea is to modify the url with .htaccess, so that when a user accesseshttp://www.domain.com/mypage, .htaccess will add the /en/ automatically, then I would modify my autonav templates to strip the /en/ from the url links from the default language. I've gotten this far, but it's still not working. Any tips? I'm not a mod_rewrite expert
We added [L] to the edn of the first rule and it seems to be working. We also tweaked one condition so the dashboard continues to work.
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^/(en|es|tools|dashboard|files)(/)? [NC] RewriteRule ^(.*)$ /en/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}/index.html !-f RewriteCond %{REQUEST_FILENAME}/index.php !-f RewriteRule . index.php [L] </IfModule>
You say you were going to 'modify my autonav templates to strip the /en/ from the url links from the default language'. Can you advice on how / what changes you did there to achieve that?
I added hutmans recommendation to our .htaccess file and it removed the default language from the home page, but it still shows up on sub pages.
I added hutmans recommendation to our .htaccess file and it removed the default language from the home page, but it still shows up on sub pages.
Hi all, I am interested to this feature, I also wish to remove /<DEFAULT_LANGUAGE_PREFIX>/ for default language.
Should core team add this feature to Multilingual Setup.
Alessandro
Should core team add this feature to Multilingual Setup.
Alessandro