Crazylife's avatar

Best practice url and route design for multilingual website using subfolder instead of sub domain

I have a question about when design a multi language and country website url.

I am using subfolder inside my main folder instead of subdomain when implement the system. In my system, i allow them to select language and the country site.

For example, if i am select english as my language and a country then the url as belows

/subfolder/en/country_code/index

My route looks like

Route::group(['prefix' => 'test/{language}/{county_code}'], function () {
  
});

Should i open multiple subfolder for each country? Or i can maintain one subfolder and connect to multiple database based on country?

Any advice on doing this? Thanks.

0 likes
0 replies

Please or to participate in this conversation.