Hi all
I try to make a multilingual site and wonder if I am heading in the right direction. My main goal is to have as few pages as possible. For now I try to make the page in English, German and Norwegian.
File system (better idea anyone?):
Root........./ (English)
.............../no/ (Norwegian)
.............../de/ (German)
As someone comes to this site they will be served the site in English and has the opportunity to select Norwegian or German language.
The URL for German language will than be www.site.com/de/ and english www.site.com/en/
But I do not want to make more than one of each file. One index.php, one gallery.php etc, and all of these files stored in root folder.
All of the text for these pages is stored in language files, en.php, no.php and de.php.
As I don't want files in www.site.com/no/ or www.site.com/de/ directory, is it possible that, when someone types www.site.com/de/index.php (an empty folder) I can use .htaccess to analyze the URL and serve the visitor www.site.com/index.php?lang=de, still showing the visitor www.site.com/de/index.php ?
I have Googled so numerous pages regarding .htaccess, but have yet to come up with a solution..
I hope I explained somehow understandable to you and that I get some response
Maybe I am way off with this method?