I'm having trouble getting 404 pages to work. In Global Template Preferences I've set strict urls to yes (tried No as well) and have selected my 404 template.
My code on a single entry page is as follows.
{exp:channel:entries channel="services" disable="member_data|pagination|category_fields" limit="1" require_entry="yes"}
{if no_results}
{redirect="404"}
{/if}
more code here
{/exp:channel:entries}
As far as I can tell this should go to a 404 page if I change the url to a non-existing url_title in the final segment. What happens instead is the page displays including header, footer and sidebar, but the content is empty.
any ideas?
--UPDATE-- full template code is in a pastie here.