How do I configure a pointer to point to a specific folder?

The following script can be used to have a pointer point to a specific folder. This script needs to be placed on the default page and it must be an asp page and not an html page.
<%  
 Response.buffer = true

 IF  Request.ServerVariables("SERVER_NAME") = "domainname.com" then
 response.redirect "domainname.com/directory"

 ElseIF  Request.ServerVariables("SERVER_NAME") = "domainname2.com" then
 response.redirect "domainname2.com/directory2"

 ElseIF  Request.ServerVariables("SERVER_NAME") = "domainname3.com" then
 response.redirect "domainname3.com/directory3"

 ElseIF  Request.ServerVariables("SERVER_NAME") = "domainname4.com" then
response.redirect "domainname4.com/directory4"

>End If
 %>

Add Feedback