Optimize language URL treatment
Closed this issue · 0 comments
emilyhobson commented
- Use a folder in the URL for Spanish options:
http://www.caliparks.org/es/
http://www.caliparks.org/es/park/5656 - Mark up the HTML code using hreflang tags for multiple languages. For example, on the home page, include code such as:
<link rel=”alternate” hreflang=”x-default” href=”www.caliparks.org” />
<link rel=”alternate” href=www.caliparks.org/es/ hreflang=”es” />
- If adopting this approach, be sure to use 301 redirects on the old format (hl=en and hl=es) to the new URLs.
- Also, add canonical link tags to all the pages: