Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: 404 errors turning into 500 errors through internal redirects

I just found another solution which seems to be a better solution than just removing this rule. I’m sure it’s in there for a reason…

I change this block:

RewriteCond %{REQUEST_FILENAME} -f [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule . – [L]

to:

RewriteCond %{ENV:REDIRECT_STATUS} !^$ [OR]

RewriteCond %{REQUEST_FILENAME} -f [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule . – [L]

Adding the top line, did the trick and presented a 404 error page (from Apache).

Cheers!

Skip to toolbar