Ian,
>From my file-not-found.tcl file:
# Directory Listing File.
set request [ns_conn request]
set url [lindex [split $request] 1]
set path $url
set full_path [ns_url2file $url]
ns_log Notice "Running file-not-found.tcl for $request"
if {![string equal "/" "$path"] && [file isdirectory "$full_path"]} {
css_dirlist $full_path $path
} else {
ns_log Debug "path = '$path' isdirectory = full_path = '$full_path' '[file
isdirectory $full_path]'"
ns_returnnotice 404 "Not Found" "File $path Not Found"
}
--------- so you can get it from [ns_conn request]
tom jackson
On Tuesday 10 July 2007 07:53, Ian Harding wrote:
> If you use the internal redirect mechanism like this
>
> ns_section "ns/server/${servername}/redirects"
> ns_param 404 "/notfound.adp" ;# Not Found error page
>
> And your notfound page wants to know what URL they originally asked
> for, [ns_conn url] won't tell you, since you have already been
> redirected.
>
> Is there any way to find out where you were internally redirected from?
>
> - Ian
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the
> email message. You can leave the Subject: field of your email blank.
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.