mortenq Posted January 29, 2011 Share Posted January 29, 2011 Is there no way to avoid the language ISO-code in the URL when you are using friendly url?If you only have one language, it makes no sense to include the ISO code in the URL.Eg. you only have english language enabled, therefor you want the following URL:http://www.domain.com/music-ipods/1-ipod-nano.htmlInstead of:http://www.domain.com/en/music-ipods/1-ipod-nano.htmlMy suggestion is to leave out the ISO-code from the URL in the shops default language.Anyone have a solution?Prestashop v. 1.4.0.1 Link to comment Share on other sites More sharing options...
mortenq Posted February 1, 2011 Author Share Posted February 1, 2011 Are there no one else facing this problem? Link to comment Share on other sites More sharing options...
shoulders Posted February 14, 2011 Share Posted February 14, 2011 i would like this option Link to comment Share on other sites More sharing options...
mortenq Posted February 14, 2011 Author Share Posted February 14, 2011 It just seems to stupid to have the language ISO-code in the URL if you only have one language. Link to comment Share on other sites More sharing options...
shoulders Posted February 14, 2011 Share Posted February 14, 2011 i have posted a feature request herehttp://www.prestashop.com/bug_tracker/view/7685/As for a quick solution you could alter your htaccess file and remove the instances of /en/ Link to comment Share on other sites More sharing options...
hups Posted March 21, 2011 Share Posted March 21, 2011 I'm having the same problem. Even If you have the option for multiple languages I don't see the need to have the iso code in the url anyway.How do you remove the language iso codes using the .htaccess file please?Rob Link to comment Share on other sites More sharing options...
shoulders Posted March 21, 2011 Share Posted March 21, 2011 regenerate htaccess in BO. under tools/generator Link to comment Share on other sites More sharing options...
hups Posted March 21, 2011 Share Posted March 21, 2011 Hi ShouldersI went to Tools/Generators and generated another .htaccess file but the site url is still the same. Do i not need to manually write some code into the htaccess file?Thanks Link to comment Share on other sites More sharing options...
shoulders Posted March 21, 2011 Share Posted March 21, 2011 are you using the latest 1.4 version. this was a known bug in earlier versionsof 1.4 Link to comment Share on other sites More sharing options...
hups Posted March 21, 2011 Share Posted March 21, 2011 I believe so. version 1.4.0.17 ???? Link to comment Share on other sites More sharing options...
shoulders Posted March 21, 2011 Share Posted March 21, 2011 it should work.- when you click regenerate make sure you tick the friendly url box.- once the new file is generated, manually check the new htaccess file- check permissions on the htaccess file- empty your browser cache, restart your computer- empty the prestashop cache, i do not know how to do this at the minute (search the forum)i am sure is is something simple, if none of these work all i can do is suggest report a bug Link to comment Share on other sites More sharing options...
hups Posted March 21, 2011 Share Posted March 21, 2011 Ill give all this a try. Sure i'll work it out.Really appreciate your help shoulders. Link to comment Share on other sites More sharing options...
ericm Posted May 24, 2011 Share Posted May 24, 2011 That is an easy problem my friend, please check my blog on how to solve the issue. 1 Link to comment Share on other sites More sharing options...
mysolarstore Posted May 24, 2011 Share Posted May 24, 2011 This issue has been resolved in 1.4.1 so make sure you have the latest install.. I have only 1 language and it doesn't display any ISO code in the URL now... Link to comment Share on other sites More sharing options...
sunandmoon21 Posted June 2, 2011 Share Posted June 2, 2011 What about if you have multi languages installed? Is it still possible to remove the iso codes from the url? Link to comment Share on other sites More sharing options...
Dan1 Posted April 18, 2012 Share Posted April 18, 2012 I have two languages in my shop 1.4.7 default being English. I need the /en removed from the URL. Is there a fix for this? Link to comment Share on other sites More sharing options...
Pez Posted August 17, 2012 Share Posted August 17, 2012 (edited) I've the same problem here. My site's language is English only. But all of a sudden my links have /en/ in them and those lead to 404 error. I've deleted all the other languages, uninstalled the languages block and regenerated the .htaccess file, but it's still the same. Can anyone help please? I read something about friendly URL playing a part, but I don't want to have to turn it off. Is there something I can edit in the .htaccess that'll stop the redirect? Edited August 17, 2012 by Pez (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now