[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Passing HTTP_REFERER to a custom 404 page?
- Subject: Re: [cobalt-users] Passing HTTP_REFERER to a custom 404 page?
- From: "Charles Williams \(CEO\)" <hosting.mailing.list.account@xxxxxxxxxxxxxxx>
- Date: Sun May 6 23:21:01 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
----- Original Message -----
From: "Jay Fesco" <jay@xxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Monday, May 07, 2001 3:17 PM
Subject: [cobalt-users] Passing HTTP_REFERER to a custom 404 page?
> [This is a repost - anyone have any ideas? - Jay]
>
> Gurus,
>
> I've read through the archives on 404 as much as my patience would allow,
> but I don't find a specific answer to my question.
>
> I need to be able to find out exactly what someone typed to get to my
custom
> 404 page.
> I have updated /etc/httpd/conf/httpd.conf for the site in question, and I
> have it properly going to my custom page, '404.asp'.
>
> For the project at hand, I need to emulate a (non-existant) directory.
For
> example, you type 'www.mydomain.com/fred'. There is no 'fred' directory
at
> 'mydomain', but by using 'fred', I can pull the appropriate record from a
> table in MySQL and deliver a 'virtual' page. This is intended to be a
> hands-off database driven site, and I'd rather stay away from the
FileSystem
> object for this project. SOOOOoooo...
Hey,
I use PHP only. But I also use an .htaccess file with this:
AddType application/x-httpd-php3 .php
ErrorDocument 404 /redir.php3
once it errors out the redir.php3 file pulls all info from the referring url
and loads the info from the database.
I would imagine you could do the same with ASP. I couldn't image why you'd
want to use asp though hehe.
chuck
>
> I've tried to pull Request.ServerVariables("HTTP_REFERER"), but it comes
> back blank after the redirect to 404.asp. I pulled ALL_HTTP as well, but
I
> didn't see anything indicating that the 404.asp page had any idea of where
> it came from (other than the Session variable and the Host). And yes,
I'm
> using a relative reference (/404.asp, not
http://www.mydomain.com/404.asp).
> Any ideas or things I've missed?
>
> Thanks!
> Jay Fesco
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>