Print Page | Close Window

Refered Page

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=5422
Printed Date: 28 March 2026 at 9:08am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Refered Page
Posted By: Mc Brain
Subject: Refered Page
Date Posted: 01 September 2003 at 8:59am
Is there any other way to get the page where we came from? I'm trying to retrieve the URL of the page that could not be found (to place it somewhere on my custom error page. I'm using Request.ServerVariables("HTTP_REFERER") , but since the refered page was never opened (because was not found)... it is not working. Any ideas?



Replies:
Posted By: ljamal
Date Posted: 01 September 2003 at 11:21am
If you set your 404 page to a custom page the referring page is passed in the querystring.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: Mc Brain
Date Posted: 01 September 2003 at 12:00pm
Thanks... I've just realized this. The problem was that I was redirecting it to another file and didn't realize that the querystring already existed. I've fixed that already. Thanks for your help.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net