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.

Customising the CMS /

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

multi domains + multi lingual site


Go to End


3 Posts   2124 Views

Avatar
snaip

Community Member, 181 Posts

6 May 2010 at 10:49pm

hi

i have site with 3 languages pl, en, de

for each site i have one domain .pl .com .de

each home page of language must has own different url :/

www.domain.pl -> polish home page
www.domain.pl/en -> english home page
www.domain.pl/de -> german home page

in htaccess i redirected each domain to thair home page


RewriteCond %{HTTP_HOST} ^(www\.)?domain-de\.de$ [NC]
RewriteRule ^/?$ http://www.domain-de.de/de/ [R=301,L]


RewriteCond %{HTTP_HOST} ^(www\.)?domain-pl\.pl$ [NC]
RewriteRule ^/?$ http://www.domain-pl.pl/pl/ [R=301,L]

RewriteCond %{HTTP_HOST} ^(www\.)?domain-en\.en$ [NC]
RewriteRule ^/?$ http://www.domain-en.en/en/ [R=301,L]

is it possible to set the domain to thair language without /de or /en ?

http://silverstripe.org/general-questions/show/264154#post264154
http://silverstripe.org/general-questions/show/281604#post281604
http://silverstripe.org/general-questions/show/281176#post281176

Avatar
snaip

Community Member, 181 Posts

9 May 2010 at 10:44pm

???

Avatar
Anonymous user

Community Member, 1 Post

25 May 2010 at 2:37am

You should to tab Behavior -> Use this page as the 'home page' for the following domains: (separate multiple domains with commas)
and just input domains