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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

multi language with many domains


Go to End


2 Posts   1464 Views

Avatar
snaip

Community Member, 181 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