Hey, I need to set up so that htaccess redirects all sub domains to a php file, is there any way to do this? for example 1234.mydomain.co.uk > mydomain.co.uk/php.php?1234 so the sub domain basically acts as the variable. i want this to work for any subdomain entered Thanks Tom
You need to set wildcard subdomains http://ma.tt/2003/10/wildcard-dns-and-sub-domains/ and then check http://stackoverflow.com/questions/228495/using-wild-card-subdomains-with-mod-rewrite