Mixa_RU Posted April 15, 2015 Share Posted April 15, 2015 Hello everyone! I have fresh PrestaShop version 1.6.0.14 installation with two languages: It looks like both languages set up well and should not depend of browser: First problem- I can not open my site with direct url mysite.com. Browser always redirects to url mysite.com/en. How to make my site opens from direct url (just mysite.com) ? And the second problem- from time to time I have 502 ERROR (Bad Gateway). I suppose this hosting problem, am I right or shall I fix something in PS? Thank you! Link to comment Share on other sites More sharing options...
selectshop.at Posted April 15, 2015 Share Posted April 15, 2015 (edited) This is correct behaviour. If you activate several languages, than Prestashop finds-out which browser setting do you have and starts with the default language of your browser or at least English, if language is not available. You cannot change this. Prestashop uses geotargeting. If you have only one language, so your site will start with yoursite.com without the language-ID, independent of the language setting of your browser. Edited April 15, 2015 by selectshop.at (see edit history) 1 Link to comment Share on other sites More sharing options...
Kerm Posted April 15, 2015 Share Posted April 15, 2015 If you have two languages or more it will all time redirect you on default language prefix line /en/ or /ru/ You cannot do like you want. 502 ERROR (Bad Gateway) is nginx error, i think you have shared or worst vps server and on high load you got this error. 1 Link to comment Share on other sites More sharing options...
Mixa_RU Posted April 16, 2015 Author Share Posted April 16, 2015 Kerm, selectshop.at , Gentlemen, thanks for your quick reply! By the way, what php core class responsible for making (such a) URLs? Can you point me to the right direction please? Link to comment Share on other sites More sharing options...
selectshop.at Posted April 16, 2015 Share Posted April 16, 2015 There are several. If you don't want that Prestashop changes automatically the language, you should offer only one language. The Geotargeting you cannot disable on the fly, cause also other functions are related to this (localization package, currency, etc....) 1 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