This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I am using the Rainlab Translate plugin and have my content defined in 2 languages (English and French) - English is the default language.
Can I remove the language code from the url structure, for the default language? Right now, all pages have "/en" in their url.
As an example: currently, the urls for the contact page look like this:
/en/contact
/fr/contact
I would like them to look like this instead:
/contact - for the default language - English
/fr/contact - for the other languages
Last updated
Yes, just change prefixDefaultLocale
to false in rainlab.translate config.
Add a config file under /config/rainlab/translate/config.php as below:
<?php
return [
'prefixDefaultLocale' => false,
];
1-3 of 3