Welcome Guest, Not a member yet? Register   Sign In
SEO optimized/translated urls with language segment
#1

[eluser]MV[/eluser]
Hi,

I finally managed to deal with routing and url but encountered a bit of a doubt:

- When dealing with urls like these:

www.site.com/pt/portuguese_word_here/other_word
www.site.com/en/english_word_here/other_word

where the first segment is obviously the language, is it common to translate the following segments of the url? Is it advisable?

or should i just consider some generic urls like:

www.site.com/pt/1/34/65
www.site.com/en/7/2/...

Is there a common practice? Advices?

I am assuming, out of probable ignorance that urls themselves could be "search engine food", meaning they could help to make the site noticed by crawlers, etc.?

Thanks.
#2

[eluser]fesweb[/eluser]
Using generic urls, works easily but you don't have to give-up the "search engine food" either.

This is redundant, but it would allow simpler code in your controllers, and still satisfy the search engines in multiple languages.
www.site.com/pt/1/34/65/portugese-word-here/other-portugese-word/
www.site.com/en/1/34/65/english-word-here/other-english-word/

Your controller could completely ignore everything after the numbers.




Theme © iAndrew 2016 - Forum software by © MyBB