Toon posts:

custom errorpages prob.

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hallo,

ik wil mbv htaccess custom error pages maken.

Dit staat in mn .htaccess:
code:
1
2
3
4
5
6
7
8
9
ErrorDocument 400 http://www.url.naar/file
ErrorDocument 401 http://www.url.naar/file
ErrorDocument 402 http://www.url.naar/file
ErrorDocument 403 http://www.url.naar/file
ErrorDocument 404 http://www.url.naar/file
ErrorDocument 500 http://www.url.naar/file
ErrorDocument 501 http://www.url.naar/file
ErrorDocument 502 http://www.url.naar/file
ErrorDocument 503 http://www.url.naar/file

Ik heb dit bestand nu bij www.mijn.site/index.html in de directory staan.
Het werkt echter niet.

Weet iemand wat ik fout doe?

  • ACM
  • Registratie: Januari 2000
  • Niet online

ACM

Software Architect

Werkt hier


Ja, je bent vergeten uit te leggen hoe je bepaald dat het niet werkt, wat je wel krijgt, de relevante entries uit je error en accesslogs etc :)

Verwijderd

ErrorDocument 404 http://www.site.nl/errors/404.php

moet gewoon werken hoor

  • Stewie!
  • Registratie: September 2001
  • Laatst online: 08:33

Stewie!

Keen must die!

je moet wel Apache webserver gebruiken he :)
Probeer anders eens:
ErrorDocument 404 errors/404.php ofzo eens!


Strava: https://www.strava.com/athletes/149347154


  • LuCarD
  • Registratie: Januari 2000
  • Niet online

LuCarD

Certified BUFH

Wat gebeurt er wel en wat niet?

Programmer - an organism that turns coffee into software.