I have a page on my site: mysite.com/index.php/staff/staff-bio/john-smith
I'm using this 404 redirect:
{if no_results OR segment_2 != "staff-bio" OR segment_4 != ""}{redirect="404"}{/if}
On a related note, I'm using the require_entry="yes" option in my staff-bio template.
This redirect statement catches the problem it staff-bio is not segment 2, and if extra segments are added to the end, but if I were to change "john-smith" to just "john" in the url, or enter some other invalid path, it doesn't redirect. It just goes to a blank template page.
What am I doing wrong here?