login  Naam:   Wachtwoord: 
Registreer je!
 Forum
Zoeken  Regels  Help
Categorieën > HTML & CSS

htaccess errorpages verwijst niet goed door (Opgelost)

GroundZero – 30/01/2012 10:40
Beste,

ik heb de volgende code:

  1. RewriteEngine on
  2. RewriteBase /
  3.  
  4. <FilesMatch "\.(html|htm|php|css)$">
  5. Header set Cache-Control "max-age=10, private, proxy-revalidate"
  6. </FilesMatch>
  7.  
  8. ## Trailing Slash
  9. RewriteCond %{REQUEST_FILENAME} -d
  10. RewriteRule ^(.+[^/])$ $1/ [R]
  11.  
  12. ## Error pages
  13. ErrorDocument 302 http://www.google.nl/error.php
  14. ErrorDocument 400 http://www.google.nl/error.php
  15. ErrorDocument 404 http://www.google.nl/error.php
  16.  
  17. ErrorDocument 405 http://www.google.nl/error.php
  18. ErrorDocument 406 http://www.google.nl/error.php
  19. ErrorDocument 407 http://www.google.nl/error.php
  20. ErrorDocument 408 http://www.google.nl/error.php
  21. ErrorDocument 409 http://www.google.nl/error.php
  22. ErrorDocument 410 http://www.google.nl/error.php
  23. ErrorDocument 411 http://www.google.nl/error.php
  24. ErrorDocument 412 http://www.google.nl/error.php
  25. ErrorDocument 413 http://www.google.nl/error.php
  26. ErrorDocument 414 http://www.google.nl/error.php
  27. ErrorDocument 415 http://www.google.nl/error.php
  28.  
  29. ErrorDocument 500 http://www.google.nl/error.php
  30. ErrorDocument 501 http://www.google.nl/error.php
  31. ErrorDocument 502 http://www.google.nl/error.php
  32. ErrorDocument 503 http://www.google.nl/error.php
  33. ErrorDocument 504 http://www.google.nl/error.php
  34. ErrorDocument 505 http://www.google.nl/error.php
  35.  
  36. ## Rewrite Rules
  37. RewriteRule ^(.*)/$ index.php?pagina=$1



Wanneer ik nu een onzin pagina intyp bijvoorbeeld

www.google.nl/dfsdfsdg.php

dan krijg ik te zien:

Firefox heeft vastgesteld dat de server het verzoek voor dit adres doorverwijst op een manier die nooit zal eindigen.

Kan iemand mij vertellen wat ik verkeerd doe aub?

2 antwoorden

Gesponsorde links

Pieter – 30/01/2012 12:48
Heb je het nog als je je rewrite rules weglaat?

GroundZero – 30/01/2012 14:14
Raar, nu enkele uren later werkt het wel, en ik ben in de tussentijd NIET aan de site geweest haha. Misschien een storing geweest?

Gesponsorde links

Je moet ingelogd zijn om een reactie te kunnen posten.
Actieve forumberichten:

© 2002-2012 Sitemasters.be - Regels - Gehost door: Vircon - Laadtijd: 0.058s