You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-de@httpd.apache.org by Christian Schäfer <ca...@yahoo.com> on 2002/02/20 18:22:47 UTC

.htaccess und 404 (wald voller bäume)

hi,
ich komme gerade nicht drauf...
ich brauche eine .htaccess, die in jedem beliebigen
verzeichnis funzt (relative pfade) und einen 404er
auf ein in diesem verzeichnis liegendem script
redirected (bsp: script.php).

meine bisherigen versuche sahen ungefähr so aus:

CheckSpelling OFF
ErrorDocument 404 ./script.php

allerdings funzt das noch nicht sondern gibt nen 500er
internal error aus... ;-(

wie muss denn dazu die conf aussehen, damit es
funktioniert?

vielen dank im vorraus!

gruß
christian


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


RE: .htaccess und 404 (wald voller bäume)

Posted by Christian Schäfer <ca...@yahoo.com>.
> Du kannst bei ErrorDocument keine Pfade mit "./"
> angeben.
> Entweder gibst Du absolute Pfade an oder aber relativ
> zum ServerRoot, z.B. "ErrorDocument 404 htdocs/error/404.html"

ok, danke. habe verstanden.
aber welche einstellungen gelten noch gleich in der config-datei?

gruß
christian


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Re: .htaccess und 404 (wald voller bäume)

Posted by Lars Eilebrecht <la...@hyperreal.org>.
According to Christian Schäfer:

> ErrorDocument 404 ./script.php
> 
> allerdings funzt das noch nicht sondern gibt nen 500er
> internal error aus... ;-(

Du kannst bei ErrorDocument keine Pfade mit "./"
angeben.
Entweder gibst Du absolute Pfade an oder aber relativ
zum ServerRoot, z.B. "ErrorDocument 404 htdocs/error/404.html"
 

ciao...
-- 
Lars Eilebrecht              - Modesty: Being comfortable that others
lars@hyperreal.org                      will discover your greatness.