Hi

I have a multilingual website using subdomains to detect language.

Example:
www.mywebsite.com/blabla = english
da.mywebsite.com/blabla = danish

The majority of my nodes are language neutral, but not the interface language.

When I create sitemaps for both english and danish, allmost all links in both sitemaps are using www. in the url.

This means that search engines only index the language neutral nodes in english, but i want them to be indexed in danish as well, as both block-content, menus, titles and meta-tags are language-dependent.

So my question is:
How can I force the links in the danish sitemap to be http://da.mywebsite/nodepath, even if the node itself is not translated?

Thanks for any help! I think this is a major issue regarding SEO.

/ Jonas, Denmark

Comments

joknjokn’s picture

Okay, now I'm not really sure what the problem is.

It seems like the links in the english version www.mywebsite.com/sitemap.xml is outputtet in relation to the logged in users language.

If the user is not logged in, the links are, as intented, linked to english (www.).

But for some reason, the da.mywebsite.com/sitemap.xml now returns "Page not found"?
I tried clearing cache, rebuild, delete the sitemap, add it again, and so on. Several times, but still, it gives 404.

What is going on?

joknjokn’s picture

In the log, the "Page not found" is logged with the url http://www.mywebsite.com/sitemap.xml, even though i tried accessing http://da.mywebsite.com/sitemap.xml ?

joknjokn’s picture

Status: Active » Closed (cannot reproduce)

The error must be something else than i described in the original post. I'm closing this and will create a new one.

jasom’s picture

Hi, I have same problems with domain language negotiation and sitemap Page not found. Where did you open new issue, here https://drupal.org/node/1948480 ?