Forum Moderators: phranque

Message Too Old, No Replies

Setting locale with .htaccess

         

guischarf

4:02 pm on Oct 28, 2006 (gmt 0)

10+ Year Member



Hello,

Is there anyway to set locale as 'es' using the .htaccess file? Can this be done based on directories?

Thanks

GS

jdMorgan

4:43 pm on Oct 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To my knowledge --which is limited in this case-- setting the locale must be done using a shell script. This isn't directly available in .htaccess. However, if you can define a RewriteMap in a server configuration file --httpd.conf or conf.d for example-- that points to the shell script, you can then invoke it by referencing that RewriteMap using mod_rewrite rules in your .htaccess files.

Jim