-
Hi guys,
I have recently got myself a subdomain. My ISP who did it for me said that the subdomain can't be directed/pointed to a directory that I chose. Is this correct?
So anyway... they pointed it to my main URL directory. So if I type in my main url I get the same page as my subdomain url. Get it?
Is there anyway of detecting which URL they typed in and then redirecting them accordingly. Using meta tags maybe. I have devised a way to do it through JavaScript and the document.URL method.
Is there are better way?
Thanks
------------------
--> B L U R
--> www.rgbdesign.com.au
-
Sure, try this code:
<%
sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
if InStr(sname,"DOMAIN1") <> 0 then
response.redirect "subdirectory to go to"
elseif InStr(sname,"DOMAIN2") <> 0 then
response.redirect "2nd subdirectory to go to"
elseif........
end if
%>
-
Sorry, this board deleted the code. It is at the address below:
http://www.crystaltech.com/webhostfaq.htm
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|