Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Regular Coder
    Join Date
    Oct 2004
    Posts
    376
    Thanks
    0
    Thanked 25 Times in 25 Posts
    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
    I believe the request to /errorpage.php?error=404 matches the RewriteRule and causes a loop.

    Try adding
    Code:
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    to all [G,L] rules.

  2. Users who have thanked schleppel for this post:

    student101 (04-19-2009)

  3. #17
    Regular Coder student101's Avatar
    Join Date
    Nov 2007
    Posts
    634
    Thanks
    80
    Thanked 15 Times in 15 Posts
    Yes that's it!, sometimes rewrites cause infinite loops, forgot to stop it with one of the REDIRECT_STATUS.
    RewriteCond %{ENV:REDIRECT_STATUS} 200
    RewriteRule .* - [G,L]
    Thank you!
    It works, glad you saw that one.

    Cheers
    Edit:
    Not using actual status code only the ^$
    Thanks for your support!
    Update MySQL with checkboxes | Tell A Friend | Delete MySQL with checkboxes

    Give thanks & resolve when done :thumbsup:


 
Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •