Hello,
I have seen other issues on the forum with i18n and the front page, but i have not succeed to fix my problem so, i m describing it here:
I want my front page in english (default) and french...
What i do is pretty simple, I create my 2 nodes, 1 is the translation of the other one, and i go on the URL ALIAS to get my elements:
node/1 english index
node/2 french index
then on Site Information, "index" is the front page...
I guess everything is correct so far.
I tried on 2 websites, the first one runs perfectly.
The second one has problem, it does not consider www.mysite.com/fr/index as the page www.mysite/fr
if i go to www.mysite.com/fr/index , the good node appears
if i go to www.mysite/fr , this message appears:
"The requested page could not be found."
I did exactly the same on both websites...I have no idea where it could come from
Anybody has an idea?
Thank you very much
Comments
Comment #1
doomed commentedWhile i dont understand exactly what benben80 wanted to say, i feel my own problem is similar.
I have a Drupal 6.9 website running with two languages:
- English (en) (default)
- Portuguese (pt-pt)
I want to be able to go to www.mysite.com/en the same way i'm able to go to www.mysite.com/pt-pt but it doesnt work.
I mean www.mysite.com/pt-pt works.
But www.mysite.com/en gives me a page not found error message.
This used to work on Drupal 5. In fact i have a D5 website where it works.
How can i achieve this?
Comment #2
doomed commentedUhh, right after posting that, i found that i can assign a path prefix for English.
This is done by going to drupal/admin/settings/language/edit/en and editing the field Path prefix.
I was expecting that to be filled by default.
Comment #3
jose reyero commented#357670: Page not found if User language is not the default
Comment #4
urrestieta commentedI think I am suffering exactly the same issue... All menus and alias work fine but one, the one the front page in english points to which returns a "Page not found" error.
There are three langs : Basque, Spanish and English. The default language is Spanish and the front page is set to a node with alias "bulegoa". The three translations of the node point to the same alias "bulegoa". I can see that there are three alias each connecting a different node each with the same "bulegoa" URL, one for each lang then.
The spanish version works fine (www.mysite.com/es or www.mysite.com/es/bulegoa), same for basque (www.mysite.com/eu or www.mysite.com/eu/bulegoa) but then english fails (www.mysite.com/en or www.mysite.com/en/bulegoa). However the english node exists in www.mysite.com/node/46 and it says in URL path settings : "bulegoa"
I have created and deleted this alias in every way I think it is possible and it keeps failing. I dont have a clue what the problem might be... It looks to me like it is a bug but I dont see any solution to this online. It would be great if anyone could give some pointers.
many thanks
one more detail... if I change the url of the english node to something else (say "bulegoa_en") the menu works fine. If I then create a new node with URL "bulegoa" neither /en or /en/bulegoa works yet
Comment #5
urrestieta commentedactually I think I finally found where the problem was coming. I realised that the values for "Default front page" were different across languages. I always thought this is a global value but it looks like it is not.
/en/admin/settings/site-information
/eu/admin/settings/site-information
/es/admin/settings/site-information
I had to make sure that in each of the above admin pages the value of "Default front page" field was pointing to a valid url alias