Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to build multilingual seo friendly urls in Rails 3?
    text
    copied!<p>I already a have a completely internationalize website already with content in multi languages, through I18n and some custom build systems. Everything is working fine. But with some public pages (none logged in part of the site), I would like to have different urls pointing to the different version of the content.</p> <p>For instance, I have a page describing our pricing policy, that has a url that looks like this: <a href="http://www.mysite.com/pricing" rel="nofollow">http://www.mysite.com/pricing</a></p> <p>To access the different language version of this page, I can add the local in front: <a href="http://us.mysite.com/pricing" rel="nofollow">http://us.mysite.com/pricing</a> to get english and <a href="http://fr.mysite.com/pricing" rel="nofollow">http://fr.mysite.com/pricing</a> to get the french version, etc.</p> <p>However I would to be able to change the complete url for the other language, I would like to access the french version of this page with:</p> <p><a href="http://fr.mysite.com/prix" rel="nofollow">http://fr.mysite.com/prix</a> for instance.</p> <p>I have found ways of doing this manually, but of course it does not interested me much of doing this manually, I would much prefer that the url be generated automatically with a proper path. And obviously I would like that the original url for the fr version (http://fr.mysite.com/pricing) does not work anymore to avoid duplicate content under different URL which is not good for SEO.</p> <p>Any advice, solution, best practice ?</p> <p>Thanks,</p> <p>Alex</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload