Redirect language query string to subdirectory for better SEO
I'm developing a web site that supports multiple languages (english and spanish) in PHP using parameters like this: www.website.com/contact?lang=en www.website.com/contact?lang=es Yes, without extension .php... I know that is a bad practice, so I want to have this: www.website.com/en/contact www.website.com/es/contact I…