![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |