Redirect To Subpage on Startup
Permalink
Hi.
I'm building my first site with C5 and it needs to be bilingual. I have doubled my content in folders /de and /en.
What I would like to do is:
1.
to route every request tohttp://www.domain.de tohttp://www.domain.de/de. The german pages will have a link somewhere pointing tohttp://www.domain.de/en and vice versa.
2.
when someone switched to a particular language a cookie should save the users decision. The next time the user visits the site he should be forwarded directly.
I do know that this is best achieved by Javascript on the client but this does not seem to be a good choice what SEO is concerned.
Some ideas?
I'm building my first site with C5 and it needs to be bilingual. I have doubled my content in folders /de and /en.
What I would like to do is:
1.
to route every request tohttp://www.domain.de tohttp://www.domain.de/de. The german pages will have a link somewhere pointing tohttp://www.domain.de/en and vice versa.
2.
when someone switched to a particular language a cookie should save the users decision. The next time the user visits the site he should be forwarded directly.
I do know that this is best achieved by Javascript on the client but this does not seem to be a good choice what SEO is concerned.
Some ideas?
you can use php or a meta tag to redirect...
You could make use of the .htaccess file and the Apache "Redirect" directive, e.g.:
Redirect Permanent /dehttp://www.domain.de
Reference in German:http://www.tinyweb.de/local/redirect.html...
You could also take a look at this threadhttp://www.concrete5.org/community/forums/customizing_c5/multiple-l... - if you haven't already.
Good luck, you're probably going to have to try a bit ;-)
Redirect Permanent /dehttp://www.domain.de
Reference in German:http://www.tinyweb.de/local/redirect.html...
You could also take a look at this threadhttp://www.concrete5.org/community/forums/customizing_c5/multiple-l... - if you haven't already.
Good luck, you're probably going to have to try a bit ;-)
What I now do is making one language default be just creating the pages directly under Home.
The second language lives in the folder /en. That way no redirect is needed in the first place.
But anyways: How and where would I have to make changes to accomplish what I was up to? Where and how can I make Concrete5 to load /de directly ifhttp://www.domain.de is requested?