Dynamic Subdomains
Posted by: The
Posted on: 2007-12-21 08:56:00
OK, I messaged DH, and asked for wildcard DNS to be turned on, and thus in return, they turned it on for me.
I am using this code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.hostbox.us [NC]
RewriteCond %{HTTP_HOST} ^([a-z0-9]+).hostbox.us
RewriteRule (.*) viewFile.php?user=%1 [L,QSA]
to take the subdomain, pass it to the viewFile.php file, so it can read in the actual file, and print it on the page.
The problem I am having is that I am getting Server not found error.
Any help on this would be greatly appreciated!