So I am able to get any user with language "pt" to view my portuguese translated pages. But, lets say they wanted to read the english language versions by clicking a link? Rather than creating duplicate pages is there a way to work around it via htaccess or html?
Here is the code I'm using now:
#The 'Accept-Language' header starts with 'pt'
RewriteCond %{HTTP:Accept-Language} (pt) [NC]
RewriteRule ^party-poker.php$ Party Poker: Análise e Códigos de Bônus de Depósito [L]
RewriteCond %{HTTP:Accept-Language} (en|pt) [NC]
RewriteRule ^party-poker-en.php$ Party Poker: Review and Deposit Bonus Codes [L]
And I'm not having any luck. The pages are redirecting but the first RewriteRule is overriding the 2nd everytime.
Thoughts?
Jeff












LinkBack URL
About LinkBacks
Reply With Quote
.

Bookmarks