Re: Créez une page d'erreur 404 intégrée et personnalisée | Titre du sujet : Re: Créez une page d'erreur 404 intégrée et personnalisée par RC78 sur 14/06/2009 19:36:28
Bonjour iLuc, Oui en effet c'est très bizarre surtout si tu as la même version que moi !!! Je viens d'effectuer la maj protector en version 3.3 mais le résultat est identique, cela doit peut être venir des réglages de l'administration.
Vous pouvez voir le résultat du fichier 404.htm ICI et j'avoue que c'est quand même plus chouette qu'une page blanche "Error 404"
La combine est la même que le 404.php sauf que là j'ai créé un répertoires "messages" avec mon fichier ma déco et mon header
<!DOCTYPE html><html lang="fr" ><meta charset="utf-8" /><title>ERREUR 404 - Ce lien de La Jungle Libertine semble corrompu</title>
<style>
html { background: url(http://www.mon-site.com/messages/bg.gif) repeat-X #323232;
font: .75em/1.5 arial, sans-serif; }
body, h1, h2, #about p { margin: 0; }body { padding: 1em 0 0; }
h1, #content p { font-size: 1.5em; overflow: hidden;margin-bottom: 0.4em; }
h1 { color: #333; padding: .4em 0; height: 1%; }
h1 img { margin-top: -.5em; float: right; }
h2 { font-size: 1.25em; line-height: 1.2; margin-bottom: 0; }
ul { font-size: 1.08em; color: #000; margin: .5em 0 1em 1.5em; padding: 0; }
form, #about { text-align: center; }
input { font-family: arial, sans-serif; font-size: 1em; }
label { display: block; padding: 0 0 1em; text-align: left; color: #000;}
div, #status { position: relative; }
div { margin: 0 auto 1em; width: 800px; }
div div { margin: 1em 0; width: auto; }
img { border: 0; }
#content { background: #fff; border: 2px solid #ccc; margin-top: 1em;padding: 25px 35px 15px; }
#content p { color: #c00; margin: 1.2em 0; }
#about { line-height: 2.0; }
#status { bottom: -1em; font-size: 1.17em; color: #777; text-align: right; }#search { width: 250px; }
</style>
<body>
<div>
<a href="http://www.mon-site.com" target="_blank"><img src="http://www.mon-site.com/messages/header.gif"></a>
<div id="content">
<h1>Oups ! Petit problème... Ce lien semble corrompu.</h1>
<h1>Erreur 404</h1>
<p>Essayez avec cette orthographe : <a href="http://www.mon-site.com/" target="_blank"><b></b><b color: #333;>http://www.mon-site.com</b></a></p>
<h2>Suggestion :</h2><ul><li><form action="http://www.google.fr/search" method="get"><label for="search">Rechercher sur Google :</label><input type="text" id="search" name="q" value="mon site"/><input type="hidden" name="channel" value="linkdoctor"/><input type="submit" value="Recherche Google" onclick="javascript: redirect(this.form)" /></form></li></ul><script type="text/javascript">function redirect(form) {clkb("btnG", escape(document.getElementById("search").value));form.submit();}</script></div>
<div id="about">© Google - <a href="http://www.google.fr" onmousedown="return rwctrd(this,'ft','2','http://www.google.com/');"> Accueil Google </a></div>
</div>
</body>
</html>
@+ Titi
|
|