| | |
asp redirect problem
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2008
Posts: 1
Reputation:
Solved Threads: 0
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)
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)
asp Syntax (Toggle Plain Text)
<% 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 %>
Last edited by peter_budo; Aug 1st, 2008 at 1:33 pm. Reason: Keep It Organized - please use [code] tags
![]() |
Similar Threads
- File Upload : Bizarre Problem (ASP)
- ASP Form problem - email not coming through (ASP)
- ASP electronic exam project, problem when update data base (ASP)
- pleaaaaaaaaaase help me ,ASP exam (ASP)
- ASP electronic exam project, problem when update data base (ASP)
- ASP Redirect on Session Timeout (ASP.NET)
- asp redirect help I think it is a syntax issue (Legacy and Other Languages)
- retrieving ids from dynamically created controls in asp.net (ASP)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- asp form problem (ASP)
Other Threads in the ASP Forum
- Previous Thread: PHP on IIS
- Next Thread: asp
Views: 2600 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for ASP
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile query record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit update web webserver windows7





