I translate my website from one language to 3 languages . Now i wanna seo friedly way to change languages.
For example if in my website url’s like ( http://example.com/news , http://example.com/statistic, http://example.com/contacts and other like this)
RewriteRule ^news$ news.php [L]
RewriteRule ^statistic$ statistic.php [L]
RewriteRule ^contact$ contact.php [L]
RewriteRule ^cur_(usd|eur|nis|rub)$ table.php?currency=$1 [L]
The 3 buttons with languages change will be in top page.
When guest or user click on English the website will be in english, but, the page where is guest or user Now, will be changed from http://example.com/page to http://example.com/page_en . (now my website see lang changes and save info with cookies)
I tried do something like this
RewriteRule (.*)(_en|_fr|_ru)$ $1?lang=$2 [L,QSA]
but i know that is bad, and i need help ))) Thanks and sorry for my bad english.
--------- Edit -----------
It work for me now like this
RewriteRule ^news$ news.php [L]
RewriteRule ^news(_)(en|he|ru)$ news.php?lang=$2 [L]
RewriteRule ^statistic$ statistic.php [L]
RewriteRule ^statistic(_)(en|he|ru)$ statistic.php?lang=$2 [L]
RewriteRule ^contact$ contact.php [L]
RewriteRule ^contact(_)(en|he|ru)$ contact.php?lang=$2 [L]
RewriteRule ^cur_(usd|eur|nis|rub)$ table.php?currency=$1 [L]
RewriteRule ^win_cur_(usd|eur|nis|rub)(_)(en|he|ru)$ table.php?currency=$2&lang=$3 [L]