Home
Home Page
trap-aim and coding
network -animation
formulate-up by layers.
net 2.0 will stop private time
The truth about banners
check of the text
burst-skill : merits plus demerits
The typical administration mistakes finished by the customer by development of a position
AJAX: novel shape network
Appendices and languages of scripts
network-plan . Internal pages of a site
business style
Psychology in mean
What is the stylish propose ?
The analysis of sites
Technologies of a chat
ActiveX on pages of a website
imagery on a website. section I. Formats.
similes on a website. A part II. Methods of space
The Perfect 404
Links
 
 

The Perfect 404


ups … great not accordingly . You within confusion - whether you is a mistake otherwise in every the website is guilty? What to you to do(formulate )?


Welcome inside the earth of a mistake 404. You have requested page, having typed(cool ) in address bar URL or having cluck on the "deceased " link - and aoaey! - you during the mind virtual "someplace ". The website caring about users, motivation stretch to you a hand of the help while further sites willpower not create anything, having counted on the mechanisms of an error memorandum built - in browsers. except we can act(arrive) superior , is not it?


I shall not go into details how you should adjust your server for correct comment of folio about 404-th misstep . Search for details within these clauses(articles):


    * Creating a norm 404 Error Page (4 Guys From Rolla)


    * Creating Custom mistake Messages inside Apache (4WebHelp)


I shall present you variants of policy of conception of side " 404 " which during the most effective icon will facilitate to manage with a unpleasant state .


For the beginning it is necessary for us to verify up the most common the reasons on which people materialize on sheet " 404 ".


    * It is erroneously typed URL (otherwise an elsewhere -of-year bookmark)


    * The link toward a search site is obsolete


    * The internal tie to your site is broken through an oversight of the web expensive


All this various displays same, but for all of these cases is necessary exceptional "medicine" - the communication on leaf " 404 " should live the for each inaccuracy . There are some actions which you can apply in all cases, bar my extraordinarily first suggestion (council) is extremely trouble-free …


execute not explore guilty!


via all income inform the user, that something not so, except at all do not utter to him yet if you precisely know, what is it his(its) mistake! Revolutions such as "possible ", "most likely", etc. here will live very conveniently . Do not spoil idea from your site on your company , in detail it is still promising to truthful .


404-th page must have...


You should be convinced, that alongside through a expression such since " something has left not so ", your page has the herein provided fundamentals :


    * The link to a diagram of a site (rider the plan at you is) plus the linkage to the main leaf of a site. It is the most effortless way of the facilitate to users. He does not demand a spelling of smart scripts.


    * The block of search. but you on a spot have role of search, affix a grassland of search on your 404-th page. rider search rebuff , and at you on a location page 404 appears too frequently , try to get this function somehow.


    * particularly ieieiaeenoe?iue appearance. Avoid to leave on "404-?" all standard map-evaluation of your site. Avoid an profusion of disturbing details. Besides the entire set of navigation on 404-th page demands bonus expenses for support of its(her) rush . If on 404-th page of steering will not be, it is probable to not care of its(her) updating, hence your company will not collide(visage ) a state when associations of map-understanding to 404-th page result within 404-th page. It I therefore e?iiece?o?!


Do not use a professional jargon . In sense, we here speak about 404 pages, suitably ? We within fact amid the. excluding Ai?en, got on " the dead relation " as a result of search on a spot about knitting, 404-th blunder such force be six-ten years' iaaaii?e, what is this. condition to you so the Mistake 404 " would be popular to utilize a slogan " - accomplish (make) it imperceptibly, lay her(it) inside a basement of sheet as the note for those who understands this freakish speech of the Network.


Now let's spot , as it is potential to vigor 404-? to employment page on you, instead of against you.


Let's construct all logically


Here I should memorandum , that it are obligatory to you of facts JavaScript (perhaps , you comprise no the rights to execution(concert ) of attendant scripts is depends on adjustments of your server). then do not overlook about oaa <noscript> inside which here should be a memorandum for users who enclose disconnected buttress JavaScript within the browser. qualification you can use server scripts (that in this case sooner - evils with compatibility and adjustments of browsers disappear themselves) adapt the offered(optional ) code beneath your wishes .


First, you will necessitate to position a miniature variable:


var strReferrer=deed .referrer.toLowerCase ();


var blnSearchReferral = bogus ;


var blnInsiteReferral = artificial ;


var str = "";


var strSite = " ";


thus , what we with them shall perform (make)?


mistakenly typed URL


Incorrectly typed URL (before an elsewhere -of-year bookmark) determination not contain referrer subsequently your regulations for this case should be impressive like it:


consideration ! The mark "" means inside this case only lug of a line consequently that she could be shown on this sheet - you should not use this symbol into the code.


but (strReferrer.span == 0)


{


str + ='We feel you spirit find lone of the following »


relations useful: <\/p> ';


str + = ' <a href = "\/domicile .php "> <img src = "/descriptions /»


home.gif " alt = " domicile Page " measurement = "100" height = "30" »


\/> <\/a> ';


str + = ' <a href = "\/position -drawing .php "> <img src = "/descriptions /»


site-map.gif " alt = " position Map " width = "100" stature = »


"30" \/> <\/a> ';


str + = ' <hr \/> ';


str + = ' <p> <beefy > You can not be able toward find the »


sheet you were after as of: <\/burly > <\/p> ';


str + = ' <ol type = "a"> ';


str + = ' <li> An <strapping > out-of-date bookmark\/pet »


<\/strong> <\/li> ';


str + = ' <li> A search engine that has an <strong> elsewhere -»


of-date roll for us </sturdy > <\/li> ';


str + = ' <li> A <burly > mis-typed address </burly > <\/li> ';


str + = ' <\/ol> ';


certificate .write (str);


}


hard link on iieneiaeea


rider value referrer is there , we can look during him URL a search site (definitely here you can bestow open freedom of the imagination). following that we can disassemble search options, find the roll of keywords which the visitor entered on a search location and to offer him the sheet suitable into our view under his(its) investigate .


if (strReferrer.span ! =0)


{


if ((strReferrer.indexOf (".looksmart.co")> 0) ||


(strReferrer.indexOf (".ifind.freeserve")> 0) ||


(strReferrer.indexOf (".request .co")> 0) ||


(strReferrer.indexOf ("google.co")> 0) ||


(strReferrer.indexOf ("altavista.co")> 0) ||


(strReferrer.indexOf ("msn.co")> 0) ||


(strReferrer.indexOf ("yahoo.co")> 0))


{


blnSearchReferral=proper ;


// get place domain - split on the earliest forward-slash


var arrSite=strReferrer.opening ("/");


// now uncover search parameters


var arrParams=strReferrer.rip ("?");


var strSearchTerms = arrParams [1];


arrParams=strSearchTerms.gash ("?");


strSite=arrSite [2];


var sQryStr = "";


// label what investigate terms are in exploit by the »


different engines


var arrQueryStrings = new-fangled Array ();


arrQueryStrings [0] = " q = "; // google, altavista, msn


arrQueryStrings [1] = " p = "; // yahoo


arrQueryStrings [2] = " solicit = "; // ask jeeves


arrQueryStrings [3] = " input = "; // looksmart


for (i=0; i <arrParams.span ; i ++)


// ring through all the parameters in the referring »


page's URL


{


for (q=0; q <arrQueryStrings.length; q ++)


{


sQryStr = arrQueryStrings [q];


but (arrParams [i] .indexOf (sQryStr) == 0)


{// we've originate a search term!


strSearchTerms = arrParams [i];


strSearchTerms = strSearchTerms.gash (sQryStr);


strSearchTerms = strSearchTerms [1];


strSearchTerms = strSearchTerms.replace ("+", " ");


}


}


}


// Tell the company what spot is at fault, what the


// search terms were


certificate .write (" <p> You did a search on <tough > »


<a href = ' " + strReferrer + " ' aim = ' _ blank '> "+"


strSite + " <\/a> <\/strong> for \ " <burly > " »


+ strSearchTerms + " <\/beefy > \ ". However, »


their index appears to be out of date. <\/p> »


<h2> All is not lost! <\/h2> <p> We think that the »


subsequent page (s) on our location will be able to help »


you: <\/p> ");


within a system it is possible to add various lines to intercept whichever persons keywords for which you exactly have some materials on a spot . For example, you have first-group stuff on keywords "electronics" or "garnishes ", but you recently include moved pages to extra catalogue of a spot - would be discourteous to mislay everyone who will come to you on a site by Google on these keywords?


stipulation (


(strSearchTerms.indexOf ("widgets")> =0) ||


(strSearchTerms.indexOf ("electronics")> =0)


)


{


file .write (" <a href = '\/chill -widgets.htm '> Our »


exceptional widgets page <\/a> <br \/> ");


}


}


}


unquestionably , if you on a site comprise search apparatus , you might use keywords from referrer and formulate search routinely . However blue-neckline search all the similar is extra preferable, as automatic seek can confer out enormously not folks pages.


The beaten linkage to a site


We have taken care of visitors come on trodden links from search sites. nowadays let's take mind of relatives not starting search sites (before from individuals search sites about which you accomplish not know). during a system it is necessary to add some more situation :


if (! blnSearchReferral)


{


strSite = strReferrer;


strSite = strSite.tear ("/");


strSite = strSite [2];


paper .write (" <p> You were imperfectly referred to »


this page in : <strong> <a href = ' " + strReferrer + " »


' aim = ' _ blank '> " + strSite + " </a> </beefy > »


<br/> We suggest you try individual of the links lower : »


</p> ");


}


... plus these associations will exist the relation to a map of a position and the link near the focal page of a position about which we strut in the beginning.


And what, stipulation a predicament in your site?


You cannot acquire and engrave on your 404-th folio " On a site beginning which you came, the incorrect bond " when erroneous referrer is your own site. into that crate would be to alter relevantly the formulation and to recognize the burden .


blnInsiteReferral = ((strReferrer.indexOf (" http: // »


www.mysite.co.uk ")> =0) ||


(strReferrer.indexOf("http://www.myothersite.com)


> =0))


stipulation (blnInsiteReferral)


{


record .write (" <p> This one's downhill to us! Please »


understand our apologies for this - we'll witness to it »


that the developer responsible for this wrecked »


link is given 20 lashes (excluding only behind he before »


she has fixed this problem). <\/p> ");


}


The decision of a predicament


So, we have managed to discover a means from dim bowels of 404-th blooper . But whether we boast corrected mistakes? No. Nevertheless, you have some variants of actions because we already know, what page was requested also what side has prepared the flawed link (proviso certainly she was). We can convey this information in a database, or automatically otherwise with the help of the key " inform concerning the broken link to the director " which can be located on 404-th sheet . The following way spirit reduce a level of "blast " as guests usually press such buttons only during a container of fantastically important kaput link. auxiliary you decide, since you will dispose of the saved up information.