Skip to main content

.HTACCESS Automatic Translation

Code:
Options +FollowSymlinks 
RewriteEngine on 
RewriteRule ^(.*)-fr$ http://www.google.com/translate_c?hl=fr&sl=en&u=http://yourdomain.com/$1 [R,NC] 
RewriteRule ^(.*)-de$ http://www.google.com/translate_c?hl=de&sl=en&u=http://yourdomain.com/$1 [R,NC] 
RewriteRule ^(.*)-es$ http://www.google.com/translate_c?hl=es&sl=en&u=http://yourdomain.com/$1 [R,NC] 
RewriteRule ^(.*)-it$ http://www.google.com/translate_c?hl=it&sl=en&u=http://yourdomain.com/$1 [R,NC] 
RewriteRule ^(.*)-pt$ http://www.google.com/translate_c?hl=pt&sl=en&u=http://yourdomain.com/$1 [R,NC]

Share this with your friends
Loading...