Jump to content

Mod_Rewrite help


pocobueno1388

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/213317-mod_rewrite-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.