View Single Post
Old 06/01/2019, 05:59 PM   #1
Mr.Anonymous
Gangsta
 
Mr.Anonymous's Avatar
 
Join Date: Jul 2011
Location: Every ban list
Posts: 854
Reputation: 182
Question How do you add subdirectories localization to your website?

Hi guys, I'm still learning stuff and need some help. How do you add subdirectories localization to your website? Some websites uses subdirectories for languages for example www.website.com/en/ or www.website.com/fr/. I'm currently using URL parameters for my website which would be www.website.com?lang=en and based on that I fetch data from my database. But I guess just www.website.com/en/ looks way better. So how do it do it? My website is not static so I cannot just create actual subdirectories plus I have over 40 languages/translated data in my database. Any help would be appreciated.
Mr.Anonymous is offline   Reply With Quote