Hallo
Hab in meinem Hauptordner eine .htaccess Datei mit der Zeile
ErrorDocument 404
http://www.abc.ch/error.htm usw. für weitere Errors (dasselbe für 500, 403, 401 etc)
in einem geschützten Ordner habe ich eine zweite .htaccess Datei
AuthName ...
AuthType Basic
AuthUserFile /.../...
usw
und dann:
ErrorDocument 401
http://www.abc.ch/error.htm Das funktioniert aber nicht
Es erscheint:
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Wenn ich nach dem 401, statt der URL "Falsche Passworteingabe" eintippe erscheint auf einer neuen Seite schön die Meldung. Ich möchte aber die error.htm Seite haben!
Hab mal gehört, dass beim 401 URL nicht akzeptiert werden, sd. nur der Pfad. hab ich auch probiert, geht aber nicht.
muss ich da nur /error.htm eingeben oder den gesamten Pfad (/.../...)???
Woran könnte das liegen, was mache ich falsch???
Danke für Antworten
Designer