I was hoping to have Virtual subdomains but my host doesnt support Options +FollowSymLinks but does support mod rewrite
i tried:
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.domain\.comt$ [NC]
RewriteRule ^(.*)$ http://domin.com/folder/ [L]
which kind of worked but instead of trying to read information on
http://domin.com/folder/
but it was reading from
http://domin.com/subdomain/folder/
so it was finding 404 file not found
is there anyway round this apart from move hosts ?
I have the option for wildcard which i have used but i dont know if i have set it up right.... i have four options for the wildcard:
1. A
2. CNAME
3. Web forward
4. Web alias
i have set wildcard for A???
..........................................................................................................
If there is no way round this is there anyway i can change a 404 redirect in .htaccess so it collects the host before getting redirected eg something like this:
ErrorDocument 404 http://domain.com/folder/index.php?host=%{HTTP_HOST}
?????