How to remove locale from the url?



  • Hello,

    I've just installed Asgard, it looks awesome!

    My question is how to remove the localе abbreviation in the url?
    I will have only one language and don't want urls like this: example.com/en I want them to be clean - just example.com

    Is there such option?

    Thanks


  • Global Moderator

    Never used single language project, but you could try by setting hideDefaultLocaleInURL = true in config/laravellocalization.php that would probably redirect all localized urls to nonlocalized.



  • Awesome!

    Thank you very much!


Log in to reply