HighDots Forums  

404-page question

alt.html.webedit alt.html.webedit


Discuss 404-page question in the alt.html.webedit forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jan Merolant
 
Posts: n/a

Default 404-page question - 10-12-2004 , 04:48 AM






Hello,

I have a question that perhaps you here can answer.

Is it possible to have a personalized 404-page generated
if people looking for a page that is not on my website?

If so, how?
My website runs on a Unix-server.

If this is not the right group I appologise, perhaps someone knows which
group is better suited to answer my question?


Selamat pagi
Jan



Reply With Quote
  #2  
Old   
Jan Merolant
 
Posts: n/a

Default Re: 404-page question - 10-12-2004 , 11:20 AM






Thanks Brucie..


Jan


"brucie" <shit (AT) usenetshit (DOT) info> schreef in bericht
news:1wd5xi63u49a7$.dlg (AT) usenetshit (DOT) info...
Quote:
In alt.html.webedit Jan Merolant said:

Is it possible to have a personalized 404-page generated
if people looking for a page that is not on my website?

yes but its not practical to implement and you'll just annoy your
visitors.

If so, how?

a bit of fun 'n giggly server side scripting

1. visitor clicks link
2. script checks to see if link target returns a 200
3. script sends visitor to link target

step 2 is where the visitor gets pissed off waiting for the browser to
react to their click, assume the link is dead or your site doesn't
work
and they go to some other site.

if the link target doesn't return a 200 and you send a page to the
visitor saying the link sucks poo you'll confuse and annoy them
because
its unexpected behavior and they'll probably not believe you and check
for themselves anyway.

in short -> yucky!

what you can do is:

1. script checks all external links every X amount of time
2. when script sends page to visitors it only includes links that
work.
3. visitor only gets sent links that work and they're happy.

if a link is bad you can get the script to say so on the page sent to
the visitor or just leave it out altogether.

don't check the links too frequently or you'll slow your site down too
much. perhaps once an hour depending on how reliable they are and how
many.

you could even get fancy so if some links are frequently ok then you
reduce how often those ones are checked.

My website runs on a Unix-server.

store the links in mysql and use php for the scripting.

If this is not the right group

this group is a bit low traffic, i'm showing only two posts. try
news:alt.html

http://alt-html.info/





Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.