Jump to content

Friendly URL of Language


Recommended Posts

Hi Guys,

 

Please tell me how to customize the url of language

Example: my default language is French and Default Url is www.abc.com/fr I wanna change it to www.abc.com without fr

 

Please help me!

Thanks a lot in advanced!

Link to comment
Share on other sites

PrestaShop v1.6 will automatically add the language ISO code to the URL if you have multiple languages enabled. If you want no language ISO code in the URL, then you'll need to go to the Localization > Languages tab and disable every language except for one. Your website will then only display in that language and will have no language ISO code in the URL.

  • Like 1
Link to comment
Share on other sites

You want to use yourshop.com/en/ for English and yourshop.com/ for French? PrestaShop doesn't let you do that. I'm not sure whether it's even possible.

 

If it is, it would require modifications to the rewrite rules in your .htaccess file and to all the functions in classes/Link.php file to remove the /fr/ from all URLs and not end up with broken URLs. I suggest that you keep things simple and leave the /fr/ in.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...