
July 18th, 2000, 06:51 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 23
|
|
|
Custom Errors - IIS, SSL and ASP
<i><b>Originally posted by : MTB (magic321@worldnet.att.net)</b></i><br />I'm trying to replace Custom Errors for SSL specific error codes with a URL which points to an ASP script and having problems. The Custom Error codes for Non-SSL items work fine using the defaults, files or URL's - it's just the SSL ones causing a problem.<br /><br />The problem is that if you don't sign in thru SSL first, it won't re-direct to the ASP error page since you don't have the access yet. I'm trying to replace the error message and automatically take you to the "https" secure site if they only type in "http". This is instead of an ISAPI filter to automatically redirect them for other needed reasons... <br /><br />To get around calling the ASP page directly from the Custom Error (since it doesn't work) - it works if I use an html file and then include a META statment to redirect to an asp page from there. It seems to work fine as far as executing the ASP page but the Server parameter for PATH_INFO changes so when I try to get the Request.Server variables, the values are not the original URL the user typed but the path for the current ASP error page.<br /><br />For example)<br />1) user types in: http://www.website.com/mtb for a secure site<br />2) The custom error 403-calls: /test/mm/error.htm which in turn calls /test/mm/error.asp <br />3) The Path_Info variable has now changed from the original path info input from the user: /mtb to: /test/mm/error.asp<br /><br />Is there anyway to get the referring site before the redirection? I need to hold onto the original URL/Path... I hope this makes sense. Any ideas? Thanks!
|