Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

multi language with many domains


Reply


2 Posts   591 Views

Avatar
snaip

Community Member, 180 Posts

24 October 2011 at 10:46pm

hi

there is a big problem

i have a site in two languages PL , DE
there is also one domain for each language

www.domain.pl
www.domain.de

but i can view german pages in polish domain and polish pages in german domain

how to redirect each domain to correct language ?

for example
www.domain.de/de-page -> correct
www.domain.pl/de-page -> should have 404

www.domain.pl/pl-page -> correct
www.domain.de/pl-page -> should have 404orrect

there is also problem in google
google index has each domain with all site pages

www.domain.pl/pl-page
www.domain.pl/pl-page-b
www.domain.pl/pl-page-c
www.domain.pl/de-page
www.domain.pl/de-page-b
www.domain.pl/de-page-c

www.domain.de/pl-page
www.domain.de/pl-page-b
www.domain.de/pl-page-c
www.domain.de/de-page
www.domain.de/de-page-b
www.domain.de/de-page-c

Avatar
Chris_Bryer

Community Member, 35 Posts

28 October 2011 at 4:26am

i built a module to handle this kind of problem:

http://www.silverstripe.org/translatable-domains-module/

let me know if you have any questions,
-Chris