I've just searched a lot here and googled about this implementation, but I can't figuring out.
I mean: I have a portfolio site (one single page) with 3 languages. Every time I click on a flag (IT, EN, FR) it will load a php file. Inside it there are many translated sentences/words based on choosed languages.
**Question:
The final url is like: localhost/site/index.php?lang=en
(if you click on English lang).
I want to rewrite it like: localhost/site/en
How to write the htaccess file? **
I just followed this tip --> Simulate file structure with PHP.
And this one:
RewriteEngine on
RewriteRule ^en/(.*)\.html$ /$1.php?language=english [L,QSA]
I can't figuring out why isn't working.
Other details:
- wamp server
- mod_rewrite activated
- single page site (jquery)
- firefox
Thank you.