Under Design > Templates > Global Template Preferences I have Strict URLS set to yes and I've defined the 404 page (It lives at /errors/404).
We're running EE 2.8.1 and PHP 5.3.27
Something like http://site.com/foo displays the 404 template and properly returns a 404 header.
This URL exists and displays content properly http://site.com/groups/studies/i-love-my-church
The problem
http://site.com/groups/studies/foo displays the 404 template, but incorrectly returns a 200 response. (http://cl.ly/image/3E3U1N2X2j1L)
EE Docs state that EE will only evaluate the first two segments unless used in conjunction with the require_entry parameter. Unfortunately, using this doesn't change the header.
The code
groups/_studies-collection:
{exp:channel:entries channel="groups_study" url_title="{segment_3}" require_entry="yes" dynamic="off" status="Featured|Open"}
Content Here
{if no_results}
{redirect="404"}
{/if}
{/exp:channel:entries}
groups/studies:
{if segment_3}
{if segment_4}
{embed="groups/_studies-entry"}
{if:else}
{exp:md_detect_page_type url_segment="{segment_3}"}
{if pagination_page}
{embed="groups/_studies-list"}
{if:else}
{embed="groups/_studies-collection"}
{/if}
{/exp:md_detect_page_type}
{/if}
{if:else}
{embed="newspring:groups/_studies-list"}
{/if}
Any clarity on this issue would be appreciated!