| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 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.
 |  | 
 | 
| | 
| | 
|  Topic: hreflang in sitemap for multiviews |  |  
| Author |  |  
| Alexandru 
 
 
 Joined: 26 May 2015
 Posts: 8
 
 
 | 
|  Posted: Thu 11 Jun '15 15:31    Post subject: hreflang in sitemap for multiviews |   |  
| 
 |  
| 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: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Thu 11 Jun '15 16:11    Post subject: Re: hreflang in sitemap for multiviews |   |  
| 
 |  
|  	  | 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
 
 
 |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |