how can i create frontpages with an alias?

http://www.example.com/de
http://www.example.com/en

and so on.

if someone comes to http://www.example.com - the user/bot should be redirected with a http status 301 to the language defined as default on the "admin/locale" page.

Comments

Roberto Gerola’s picture

My default language is English.
I've created a page with an alias : en/home and assigned it under settings.
Created the Italian translation : it/home
Activated the front page redirection.

hass’s picture

i don't like to create a special node for my frontpage. if i do so, the drupal_is_front_page check will fail and the node checkbox "display on frontpage" won't work... :-(((

Roberto Gerola’s picture

Assigned: Unassigned » Roberto Gerola
Category: support » feature

Ok. Understood.
You need /node as frontapage but in different languages :

en/node
it/node
de/node

I'l transform this issue in a feature request and see to implement it.

hass’s picture

thank you very much. this is one of the major i18n and localizer usability and search engine problems from my point of view. i hope this is not a big task and can be solved soon.

meba’s picture

I think this can be solved creating a pattern for pathauto named [lang]. Everybody then can add [lang]/[title] to node path

summit’s picture

I am also interested in this.
Thanks in advance!

greetings,
Martijn
www.best-information.eu

hass’s picture

Status: Active » Closed (won't fix)