htaccess rewrite for language subdomains

view full story

http://serverfault.com – I need to point subdomains like es.domain.com to /public/www/index.php The problem is my host does NOT provide me to set a path, I can only set up the subdomains for "local use", which creates the folders in the public directory My structure is /public/ /public/de/ /public/es/ /public/it/ /public/www/index.php My host told me to use .htaccess files inside the sub domain folders. I tried, for example in /public/es/ something like <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^(de|es|it)\.mydomain\.com$ (HowTos)