PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Custom error page without Error Document
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Custom error page without Error Document

Réponse
 
LinkBack Outils de la discussion
Vieux 07/01/2008, 10h51   #1
howa
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Custom error page without Error Document

Is it possible to do some custom error page like: http://www.google.com/dsdsde
without the use of Error Document + dynamic script such as PHP (What I
want is just put the request URI back to the error page + some custom
design)

I don't want to build some overhead into the 404 not found by using a
PHP script.

I have tried to modified the "HTTP_NOT_FOUND.html.var" but no luck...

Any suggestion?

Thanks.


  Réponse avec citation
Vieux 07/01/2008, 12h49   #2
Kees Nuyt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Custom error page without Error Document

On Mon, 7 Jan 2008 02:51:33 -0800 (PST), howa
<howachen@gmail.com> wrote:

>Is it possible to do some custom error page like: http://www.google.com/dsdsde
>without the use of Error Document + dynamic script such as PHP (What I
>want is just put the request URI back to the error page + some custom
>design)
>
>I don't want to build some overhead into the 404 not found by using a
>PHP script.
>
>I have tried to modified the "HTTP_NOT_FOUND.html.var" but no luck...
>
>Any suggestion?
>
>Thanks.


Add:
<!--#echo var="REQUEST_URI" -->
for example to:
%serverroot%\error\include\top.html
or
%serverroot%\error\include\bottom.html
--
( Kees
)
c[_] I drink to make other people interesting. (#121)
  Réponse avec citation
Vieux 07/01/2008, 20h56   #3
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Custom error page without Error Document

On Jan 7, 12:49 pm, Kees Nuyt <k.n...@nospam.demon.nl> wrote:
> On Mon, 7 Jan 2008 02:51:33 -0800 (PST), howa
>
> <howac...@gmail.com> wrote:
> >Is it possible to do some custom error page like:http://www.google.com/dsdsde
> >without the use of Error Document + dynamic script such as PHP (What I
> >want is just put the request URI back to the error page + some custom
> >design)

>
> >I don't want to build some overhead into the 404 not found by using a
> >PHP script.

>
> >I have tried to modified the "HTTP_NOT_FOUND.html.var" but no luck...

>
> >Any suggestion?

>
> >Thanks.

>
> Add:
> <!--#echo var="REQUEST_URI" -->
> for example to:
> %serverroot%\error\include\top.html
> or
> %serverroot%\error\include\bottom.html
> --
> ( Kees
> )
> c[_] I drink to make other people interesting. (#121)


e careful to escape the uri in case of script injection
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h02.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11373 seconds with 11 queries