pocobueno1388 Posted September 13, 2010 Share Posted September 13, 2010 Hello, I have a directory on my site named "spanish", and I would like any webpage in that directory to be translated to spanish automatically. So is there a way to tell mod_rewrite to add the following string (below) to the beginning of the URL ONLY IF the webpage is in the directory "spanish"? String I'm trying to add to beginning of URL http://translate.google.com/translate?hl=en&sl=en&tl=es&u= So say the url was: www.optimumhealthcare.org/spanish/page.html I would want it to change that URL to: http://translate.google.com/translate?hl=en&sl=en&tl=es&u=www.optimumhealthcare.org/spanish/page.html Any help would be greatly appreciated! Thanks Quote Link to comment Share on other sites More sharing options...
schilly Posted September 13, 2010 Share Posted September 13, 2010 You want to redirect your traffic to google? You could try their AJAX translation API: http://code.google.com/apis/ajaxlanguage/documentation/#Translate Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted September 15, 2010 Author Share Posted September 15, 2010 Thanks, that is a much better solution! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.