Hello.

I have a domain: www.maydomain.com , i made subdomains (as languages) ger.mydomain.com, esp.mydomain.com,fra.mydomain.com........

I will that this subdomains point to the same directory, as the main domain (www.mydomain.com) . Than the code will read the url itself, and will make a $lang variable.

I cannot do it. I would like to write to the .htaccess the mod_rewrite modul, but it will rewrite the url. I have tested a Domain/subdomain REDIREDTION, but it will redirect , so if somebody type: ger.mydomain.com, than in the next second he will see: www.mydomain.com in the url section of the browser.

So i need a pointing , or alias of a directory.



If would have my own server, than i could write the httpd.conf file so:

<VirtualHost 127.0.0.1>
DocumentRoot /www/domain
ServerName www.domain.com
ServerAlias *.domain.com
# other setup
</VirtualHost>

But in the Hostony server i cannot do this.

Can somebody help me?