PC Review


Reply
Thread Tools Rate Thread

custom 404 error page Q

 
 
Larry
Guest
Posts: n/a
 
      9th Oct 2004
I have created a custom 404 Not Found error page and am trying to
display the url of the requested page. I found a parameter <!--#echo
var="REQUEST_URI" --> which displays the pagename but I would like to
display the full url. Does anyone know which parameter does this? Also
is there somewhere a list of which parameters can be used in this
manner? I haven't been able to find one so far.

I also wanted to show the 'referring page' but this field always appears
blank. i.e. <!--#echo var="HTTP_REFERRER" -->

To see what is displayed goto test 404 error page:
http://www.bed-and-breakfast-travel.com/5index.html

Larry

--
For your security and peace of mind ALL emails are automatically scanned
with the latest Norton AV Virus Definitions. Not that I have any virus'
but why not be careful! I get virus signature updates regularly!

A Belt and Suspenders are the best security invented!
 
Reply With Quote
 
 
 
 
Steve Easton
Guest
Posts: n/a
 
      10th Oct 2004
Comments if I may.
I wouldn't do what you want to do and here's why:
1. As a webmaster, if I were to hit a 404 page like that my first instinct is to close it.
2. Also as a web master, I know you have server logs you can check to see if people are clicking
broken links.
3. What if a visitor is clicking an incomplete link sent to them by a friend who is recommending
your site / services to them, and they get this error page that displays their user agent, IP and
referring link?? My guess is you will lose the visitor. Referring links by the way are not always
what they seem, sometimes it can be the last site visited which has nothing to do with "where they
were where when they clicked a link to your site.
4. As a webmaster with a site that has received well over 2 million hits, believe me when I say you
will be lucky if 1 in 100,000 visitors will "assist" you with broken links or forward comments about
your site.

5. <imho>
Save the server tricks for a hobby site, and for a 404 page for a "professional" site simply state
that there must have been a server error, give them the list of links as you have done at the bottom
of the page and also a site search option.
What you want to do will cost you customers.
You want your visitor to have the fastest possible, most hassle free way there is to "get into" your
web site.
Asking them to submit a form on an error page won't work.
</imho>

fwiw, I spent $634 last month at a B&B in Rome Italy that I found on the internet. Had I hit an
error page like that, I would have gone on to the next site in the list I found with Google when I
was searching.



--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"Larry" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> I have created a custom 404 Not Found error page and am trying to
> display the url of the requested page. I found a parameter <!--#echo
> var="REQUEST_URI" --> which displays the pagename but I would like to
> display the full url. Does anyone know which parameter does this? Also
> is there somewhere a list of which parameters can be used in this
> manner? I haven't been able to find one so far.
>
> I also wanted to show the 'referring page' but this field always appears
> blank. i.e. <!--#echo var="HTTP_REFERRER" -->
>
> To see what is displayed goto test 404 error page:
> http://www.bed-and-breakfast-travel.com/5index.html
>
> Larry
>
> --
> For your security and peace of mind ALL emails are automatically scanned
> with the latest Norton AV Virus Definitions. Not that I have any virus'
> but why not be careful! I get virus signature updates regularly!
>
> A Belt and Suspenders are the best security invented!



 
Reply With Quote
 
Jon Spivey
Guest
Posts: n/a
 
      10th Oct 2004
Agree with that advice 100%. I'd also add make some code so you're aware of
any errrors, whether you log them to a database email them to you whatever
you need to know whats happening. I have 500s sent to my cell and 404s
logged to a database. If you generate an error you've probably lost the guy
(from my stats I'd put the figure at 1 in 100 that will email to tell
you/ask for help) but it's very important to know exactly what caused the
error. I'd agree nobody is going to fill in that form on the OPs site.


--
Cheers,
Jon
Microsoft MVP

"Steve Easton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Comments if I may.
> I wouldn't do what you want to do and here's why:
> 1. As a webmaster, if I were to hit a 404 page like that my first instinct
> is to close it.
> 2. Also as a web master, I know you have server logs you can check to see
> if people are clicking
> broken links.
> 3. What if a visitor is clicking an incomplete link sent to them by a
> friend who is recommending
> your site / services to them, and they get this error page that displays
> their user agent, IP and
> referring link?? My guess is you will lose the visitor. Referring links
> by the way are not always
> what they seem, sometimes it can be the last site visited which has
> nothing to do with "where they
> were where when they clicked a link to your site.
> 4. As a webmaster with a site that has received well over 2 million hits,
> believe me when I say you
> will be lucky if 1 in 100,000 visitors will "assist" you with broken links
> or forward comments about
> your site.
>
> 5. <imho>
> Save the server tricks for a hobby site, and for a 404 page for a
> "professional" site simply state
> that there must have been a server error, give them the list of links as
> you have done at the bottom
> of the page and also a site search option.
> What you want to do will cost you customers.
> You want your visitor to have the fastest possible, most hassle free way
> there is to "get into" your
> web site.
> Asking them to submit a form on an error page won't work.
> </imho>
>
> fwiw, I spent $634 last month at a B&B in Rome Italy that I found on the
> internet. Had I hit an
> error page like that, I would have gone on to the next site in the list I
> found with Google when I
> was searching.
>
>
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> .......................with a computer
>
> "Larry" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> I have created a custom 404 Not Found error page and am trying to
>> display the url of the requested page. I found a parameter <!--#echo
>> var="REQUEST_URI" --> which displays the pagename but I would like to
>> display the full url. Does anyone know which parameter does this? Also
>> is there somewhere a list of which parameters can be used in this
>> manner? I haven't been able to find one so far.
>>
>> I also wanted to show the 'referring page' but this field always appears
>> blank. i.e. <!--#echo var="HTTP_REFERRER" -->
>>
>> To see what is displayed goto test 404 error page:
>> http://www.bed-and-breakfast-travel.com/5index.html
>>
>> Larry
>>
>> --
>> For your security and peace of mind ALL emails are automatically
>> scanned
>> with the latest Norton AV Virus Definitions. Not that I have any
>> virus'
>> but why not be careful! I get virus signature updates
>> regularly!
>>
>> A Belt and Suspenders are the best security invented!

>
>



 
Reply With Quote
 
Larry
Guest
Posts: n/a
 
      10th Oct 2004
Thanks for the advice. The current page was/is a test version to try and
get the info sent to me automatically when the page is entered. I was
trying to find a way to save the url so I could send it to myself
automatically. I agree as it is it's ugly and will fix it. Back to
checking the logs I guess.

Larry

Jon Spivey wrote:

>Agree with that advice 100%. I'd also add make some code so you're aware of
>any errrors, whether you log them to a database email them to you whatever
>you need to know whats happening. I have 500s sent to my cell and 404s
>logged to a database. If you generate an error you've probably lost the guy
>(from my stats I'd put the figure at 1 in 100 that will email to tell
>you/ask for help) but it's very important to know exactly what caused the
>error. I'd agree nobody is going to fill in that form on the OPs site.
>
>
>
>


--
For your security and peace of mind ALL emails are automatically scanned
with the latest Norton AV Virus Definitions. Not that I have any virus'
but why not be careful! I get virus signature updates regularly!

A Belt and Suspenders are the best security invented!
 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      10th Oct 2004
You would need to use a server-side script, such as ASP, ASP.net or PHP to accomplish having a email
sent automatically or to update a text file or database, which one to use all depends on the OS and
what is supported by your web host.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Larry" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Thanks for the advice. The current page was/is a test version to try and
> get the info sent to me automatically when the page is entered. I was
> trying to find a way to save the url so I could send it to myself
> automatically. I agree as it is it's ugly and will fix it. Back to
> checking the logs I guess.
>
> Larry
>
> Jon Spivey wrote:
>
> >Agree with that advice 100%. I'd also add make some code so you're aware of
> >any errrors, whether you log them to a database email them to you whatever
> >you need to know whats happening. I have 500s sent to my cell and 404s
> >logged to a database. If you generate an error you've probably lost the guy
> >(from my stats I'd put the figure at 1 in 100 that will email to tell
> >you/ask for help) but it's very important to know exactly what caused the
> >error. I'd agree nobody is going to fill in that form on the OPs site.
> >
> >
> >
> >

>
> --
> For your security and peace of mind ALL emails are automatically scanned
> with the latest Norton AV Virus Definitions. Not that I have any virus'
> but why not be careful! I get virus signature updates regularly!
>
> A Belt and Suspenders are the best security invented!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to catch error 401 access denied and redirect to custom error page ? rote Microsoft ASP .NET 4 4th Aug 2008 08:27 PM
Can we show error message in Custom error defaultRedirect page ad Microsoft ASP .NET 2 5th Jul 2005 09:32 PM
custom error page cares about type of error dee Microsoft ASP .NET 0 28th Jun 2005 05:28 PM
How do I create a custom error page in Front Page 2002? =?Utf-8?B?amltZ2Nhbg==?= Microsoft Frontpage 1 27th Apr 2005 07:01 AM
.ASPX page hit twice if Custom Error page in IIS jonhyland@hotmail.com Microsoft ASP .NET 5 22nd Dec 2004 01:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:56 AM.