I use I18n and xmlsitemap and engin-module etc.
For internationalization, I use the negociation per domain name.
Default is French with http://www.musee-des-bisses.ch
Second language is German with http://www.suonenmuseum.ch/
I did 2 xml sitmaps
For French : http://www.musee-des-bisses.ch/sitemap.xml
For German : http://www.suonenmuseum.ch/sitemap.xml
Is it right until now ?
In admin/settings/xmlsitemap/engines, for field “Costum submission URLs”, for now I did not write anything. Do I need to write my second domain name here? Or is this field related to XML sitemap custom? I did dot enable this one.
As a result I have wrong urls in sitemaps (not good domain name) and in Google webmaster tools, I see just the French xml file.
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | xmlsitemap_i18n_domain_fix.patch | 716 bytes | jamesliu78 |
Comments
Comment #1
sahuni commentedDo I have to do just 1 xmlsitemap with my default language and nothing for second language?
Comment #2
sahuni commentedWhat must I write in http://www.musee-des-bisses.ch/admin/settings/xmlsitemap/settings , field "Default base URL" ?
For now I have "http://www.musee-des-bisses.ch"
Is it OK?
Comment #3
iamjon commentedhi sahuni
I had the same issue. All you have to do is turn on the i18n xml site map module that comes with the 6.x.2.0 beta, then when logged in to
http://www.suonenmuseum.ch/ : click on "Add new XML sitemap" assign the language to German
http://www.musee-des-bisses.ch : create a new map and assign the language to French
this worked for me.
Comment #4
sahuni commented@iamjon
I did as you said, but you know, I had already i18n xml site map module ON.
I cleaned the 2 xml tables with mysql (because of bugs not yet fixed in 6.x.2.0 beta1).
Then I did as you said, but it's same problem with the german one, with inside for example : http://www.musee-des-bisses.ch/projet and http://www.suonenmuseum.ch/projekt.
In fact I still see the 2 url :
http://www.musee-des-bisses.ch/sitemap.xml and http://www.suonenmuseum.ch/sitemap.xml in the xmlsitemap config list when I'm in http://www.suonenmuseum.ch/ and also when I'm in http://www.musee-des-bisses.ch.
Do you see just 1 each side or both?
After in Google, you can see the 2 sitemaps or just one?
Anyway thanks for helping.
Comment #5
iamjon commentedI looked at the xml, in my case it was producing stuff that was weird when I had languages inproperly assigned or as language neutral.
Comment #6
iamjon commenteddid you regenerate all the links?
Comment #7
sahuni commentedYes I did. Can you just reply to my 2 questions please?
Comment #8
iamjon commentedDo you see just 1 each side or both? - what do mean?
From each of the admins, i see all of the sitemaps, ie if I'm logged into the hu account and settings/xmlsitemap/settings i'll see all three sitemaps with their own language and url
After in Google, you can see the 2 sitemaps or just one? - don't have access to the google account.
in my site
mysite.hu/xmlsitemap - shows only nodes in hungarian
mysite.co.uk/xmlsite - shows only nodes in british english
Comment #9
sahuni commentedThanks for reply
I'm wondering if my problems do not come from pathauto module which is a real mess with i18n.
Do you use path-auto also?
Comment #10
iamjon commentedyup.
Comment #11
my-family commentedThe negotiation with languages does not seem to work. I have default language (cs) and the second language (en). The module generated 2 sitemaps: MYSITE/en/sitemap.xml (which works), and MYSITE/cs/sitemap.xml which goes to "page not found". Thank you in advance for help.
Comment #12
Anonymous (not verified) commentedWe need the value of MYSITE to help you with this problem.
Comment #13
my-family commentedIt is "www.upb.cas.cz", thank you...
Comment #14
Anonymous (not verified) commented@my-family: Have you reviewed the comments that iamjon gave, especially #3?
@sahuni: Did you resolve your issue?
Comment #15
Anonymous (not verified) commented@my-family: I see the cs/sitemap.xml working. You now need to go update the content types to include the content pages in the sitemap.
Comment #16
sahuni commentedNO
I did not solve it.
It was such a mess that I feared that SEO would be worse and worse, so I simply remove the second language xmlsitemap.
I am actually, finishing SEO work on French nodes, and soon, I'll begin with German. Perhaps, I can try again next week.
Comment #17
Anonymous (not verified) commented@sahuni: Please report back when you have a resolution or more questions.
Comment #18
my-family commented@earnie: it works now (and did not before), althoug i have not changed anything in the meantime. Anyway, thank you.
Comment #19
sahuni commentedWell, I'm ready now to go ahead, but afraid of destroying what's working well now.
For now, I have just configured the French sitemap (default language).
In http://www.musee-des-bisses.ch/sitemap.xml , I have what expected : French urls et independant language urls.
examples :
http://www.musee-des-bisses.ch/projet-du-musee-des-bisses
http://www.musee-des-bisses.ch/bisse/bisse-d-ayent
If I add a new sitemap, for German language, what am I supposed to have inside ?
All the nodes that I have translated for sure, for example :
http://www.suonenmuseum.ch/suonen-museum-projekt
http://www.suonenmuseum.ch/bisse/de/bisse-d-ayent
...
What about nodes language independant? They will be in both sitemap?
Please reply to that question.
I suppose that all nodes that are just in French will not be seen in the German sitemap, right?
So I made a mistake, because all Mediathek nodes are just in French. They normally will not be translated. It was not a problem, because I created views working well in both languages, but for xmlsitemap, it's an error. What do you think?
Comment #20
jasom commentedAfter advice of #3 site.cz/sitemap.xml works OK but main domain sitemap site.com/sitemap.xml returns "Page not found". Site default language is english.
Is status report there is all green message:
XML sitemap - Last attempted generation on Thu, 04/04/2013 - 11:46 (2 hours 12 min ago).
XML sitemap cache directory - Writable
On site.com/admin/config/search/xmlsitemap these's a table:
Why I cannot access site.com/sitemap.xml?
Comment #21
jamesliu78I found the all links is correct, but when I log in, the links domain will go wrong.
Finally, I found the XMLSitemap i18n module use "$GLOBALS['language']->language" to got current language code.
It will consult user setting, and always get same file, so that's why links didn't change.