Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-03-01 23:29:07

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Implementing hreflang / xml-sitemap?

Hello all,

I am building a dual language website. Englisch (root) German (subfolder) no subdomain.

1. Is it neccessary to implement the hreflang on each page? If yes, what is the best way to do that?

2. Is using a 2nd xml sitemap a better and easier choice?
Like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
  xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <url>
    <loc>http://www.example.com/</loc>
    <xhtml:link
                 rel="alternate"
                 hreflang="de"
                 href="http://www.example.com/de/"
                 />
    <xhtml:link
                 rel="alternate"
                 hreflang="en"
                 href="http://www.example.com/"
                 />
  </url>
 
  <url>
    <loc>http://www.example.com/de/</loc>
    <xhtml:link
                 rel="alternate"
                 hreflang="en"
                 href="http://www.example.com//"
                 />
     <xhtml:link
                 rel="alternate"
                 hreflang="de"
                 href="http://www.example.com/de/"
                 />
  </url>
 

Other ideas???

Thanks in advance,
Oliver

Offline

#2 2017-03-02 12:07:30

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Implementing hreflang / xml-sitemap?

I didn't want to leave this with no reply, but I really don't have an answer to your question. My experience in crafting dual-language websites is almost nonexistent, and what little I know about it is entirely based on reading about it.

We have kicked around a few ideas on how we might offer better multi-language support in future versions, but haven't yet made such additions a certainty, and IF we pursue such features, it likely wouldn't be until we're into 2.0 development or after.


Matt

The Turning Gate, http://theturninggate.net

Offline

#3 2017-03-03 01:41:40

volvoxturbo
Member
From: Barcelona - Frankfurt - Rome
Registered: 2012-11-12
Posts: 247
Website

Re: Implementing hreflang / xml-sitemap?

Hi Matt,

thank you for your reply!
As far as I figure out how it works I will post it here.

Other suggestions welcome.

Best regards,
Oliver

Last edited by volvoxturbo (2017-03-03 01:41:57)

Offline

Board footer

Powered by FluxBB