URL structure for multilingual websites
I'm developing a SPA web app and it will support various languages. It is build with AngularJS and I am using angular-translate to provide i18n.
But I am struggling a little bit with how the URL structure should be. I do no plan on using either gTLDs nor ccTLDs, so that leaves me with three options.
- Use query params:
- Use url paths:
- Store the chosen locale in localStorage or a cookie
The first option is a no-go according to Google's guidelines for web apps SEO. So that leaves me with the last two options.
I have a hard time deciding which is more beneficial, though I am inclined to believe that using url paths would probably be more crawler friendly.
P.S: Not sure if this is the best place to ask such a question either.
The second option is your safest bet as according to https://webmasters.stackexchange.com/questions/59652/what-happens-if-i-try-to-set-a-cookie-on-a-bot cookies are ignored. You can test this yourself by going to the Google Console and fetching your website.
- → OctoberCMS Plugin update url
- → How do i get base url in OctoberCMS?
- → Display different sidebar content based on page url - October CMS
- → .htaccess - not routing to public folder
- → Redirect wrong url laravel 5.1
- → Dynamic url segment name in laravel 5.1
- → How do I determine if a new ReactJS session and/or Browser session has started?
- → Laravel Send URL with JSON
- → Laravel 4.2 application occurs unnecessary redirection after uploading live server
- → Laravel 5 route::group more than one controller issue
- → Angularjs not working inside laravel form
- → Function Undefined in Axios promise
- → AJAX folder path issue