kpumuk / meta-tags

Search Engine Optimization (SEO) for Ruby on Rails applications.
MIT License
2.73k stars 275 forks source link

Implement multi-regional and multilingual URLs #45

Closed dlackty closed 10 years ago

dlackty commented 11 years ago

To help search engines understand the language or regional of URLs, and build up the equivalence relationships between different languages or regional sites.

Based on Google's suggestion, I add the support of alternate tags like below:

<link rel="alternate" hreflang="en" href="http://example.com/" />
<link rel="alternate" hreflang="de" href="http://example.com/de/" />

This should close #40.

kpumuk commented 10 years ago

Merged with pull request #55 and commit a43016afe622aaaa10ffc644f69e63a1ef0847f9