ruben.rens 0 Newbie Poster

Hi, new here, but have read the previous threads on redirect problems:
We are running a default.asp file on a IIS 2000 server that handles redirects for us. Until now all has been working 100%, but I am having trouble adding a new redirect to this file. I need to point out that I am very green when it comes to asp, but hopefully fast learner.

The ISP confirmed that a sub domain we registed is active and has propagated.
When I updated the asp file, I get a http 404 error when I request the new addition - http://order.mysite.co.za - which I want to point to https://secure.mysite.co.za/*.*

The bizarre thing is that in trying to eliminate possible reasons, I went and changed an existing line of code by simply pointing it to the desired URL - and when I tried that it worked - but obvisouly for the wrong sub domain?

Any ideas what I might have done wrong?

The code looks like this (removed the real URL's)

<%
Session.Timeout = 720
select case Request.ServerVariables("HTTP_HOST")
  case "www.mysite.co.za"
    session("SiteName") = "My site"
    response.redirect "pages/index/index.php"

  case "promotion.mysite.co.za"
    session("SiteName") = "My site"
    response.redirect "pages/personal/*.php"
	
  case "apply.mysite.co.za"
    session("SiteName") = "My site"
    response.redirect "https://secure.mysite.co.za/*.*"

  case "wine.mysite.co.za"
    session("SiteName") = "My site"
    response.redirect "pages/wine_society/*.*"  
	  
  case "dine.mysite.co.za"
    session("SiteName") = "My site"
    response.redirect "pages/personal/*.*"

  case "golf.mysite.co.za"
    session("SiteName") = "My site"
    response.redirect "pages/personal/*.*"  

  case "travel.mysite.co.za"
    session("SiteName") = "My site"
    response.redirect "pages/travel/*.*"  

  case "prive.mysite.co.za"
    session("SiteName") = "My site"
    response.redirect "/prive/*.*"                          

  case "advantage.mysite.co.za"
    session("SiteName") = "My site"
    response.redirect "https://secure.mysite.co.za/*.*" 
	  
  case "order.mysite.co.za"
    session("SiteName") = "My site"
    response.redirect "https://secure.mysite.co.za/*.*" 

  case else
    session("SiteName") = "My site"
    response.redirect "pages/index/*.*"

end select
%>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.