logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: hreflang in sitemap for multiviews
Author
Alexandru



Joined: 26 May 2015
Posts: 8

PostPosted: Thu 11 Jun '15 15:31    Post subject: hreflang in sitemap for multiviews Reply with quote

Hi,

I have a website with multiviews activated in the apache conf file.

Currently the site map is looking like this:

Code:

<url>
<loc>http://www.mydomain.de/index</loc>
</url>


I want that the sitemap also contains hreflang as recommended by Google:

Code:

<url>
<loc>http://www.mydomain.de/index</loc>
<xhtml:link
             rel="alternate"
             hreflang="de"
             href="http://www.mydomain.de/index.de"
             />
<xhtml:link
             rel="alternate"
             hreflang="en"
             href="http://www.mydomain.de/index.en"
             />
</url>


The question is, if google's search engine will see it as duplicated content, because visited from USA the URL http://www.mydomain.de/index will provide same content as the alternate URL http://www.mydomain.de/index.en.

So is this way of writing the sitemap okay or not?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 11 Jun '15 16:11    Post subject: Re: hreflang in sitemap for multiviews Reply with quote

Alexandru wrote:

I want that the sitemap also contains hreflang as recommended by Google:


Since it is recommended by google how should that be duplicated content to the crawler since you separate the urls?
Back to top
Alexandru



Joined: 26 May 2015
Posts: 8

PostPosted: Thu 11 Jun '15 20:06    Post subject: Reply with quote

Google recommends to use hreflang but it does not explicitly shows how: https://support.google.com/webmasters/answer/189077?hl=en. Or at least I didn't get it.

The question is simple: Since http://www.mydomain.de/index and http://www.mydomain.de/index.en will return the same content, it will be interpreted as a duplicated content, or not?
Back to top


Reply to topic   Topic: hreflang in sitemap for multiviews View previous topic :: View next topic
Post new topic   Forum Index -> Apache