Jump to content

Language based on domain name


Recommended Posts

Good day,

 

I am currently working on PrestaShop 1.5.6.0 right now. Is it possible to choose language translation based on the domain name? For example:

 

.fr => French

co.uk => English
.es => Spain

 

 

Is there a module that I should use? Or is there some procedure that needs to be followed to achieve this? Thanks and sorry if this a common question.

Link to comment
Share on other sites

Hello,

 

I've just upgraded from PS1.3 to PS1.5.6

 

With PS1.3 I've used HTACCESS to manage my multilingual / multi doomain store

Domain.com would show the content of Domain.com/lang-en/

Domain.fr would show the content of Domain.com/lang-fr/

Domain.de would show the content of Domain.com/lang-de/

 

The old HTACCESS of PS1.3 was the following and was working great:

RewriteRule ^lang-en/?(.*)$ http://www.domain.com/$1 [R=301,L]
RewriteRule ^lang-fr/?(.*)$ http://www.domain.fr/$1 [R=301,L]
RewriteRule ^lang-de/?(.*)$ http://www.domain.de/$1 [R=301,L]
 
With PS1.5 the structure is different, so the code was modifed. But unfortunately it's not working. When I type domain.fr I get domain.com/fr/  despite having the below code. Any idea where the problem is coming from?
RewriteRule ^en/?(.*)$ http://www.domain.com/$1 [R=301,L]
RewriteRule ^fr/?(.*)$ http://www.domain.fr/$1 [R=301,L]
RewriteRule ^de/?(.*)$ http://www.domain.de/$1 [R=301,L]
 
Thank you,
Basil
Link to comment
Share on other sites

×
×
  • Create New...