My host only has wildcard dns subdomains, so i have to stick this code in my index.asp file, but i use php.. i was wondering how i'd make this code into php.. can someone help?? here's the instructions on it..
"WILDCARD DNS SUB-DOMAIN's
Thank you, we have calculated the code which you need to ensure you're new subdomain answers correctly. Please cut and paste the following code into you're index.asp file, above all of the HTML coding:
<%
If Request.ServerVariables("HTTP_HOST") = "cube.twistedanime.net" Then
Response.Redirect "//subs/cube"
Else
%>
OK, now all you're normal HTML should follow this small script, and after you have closed off the HTML, you need to add one more line underneath it:
<%
End If
%>
That's all there is to it!"