Hi, I’m trying to stop non existent urls in a blog.
I’ve got the following code in a blog template:
{exp:channel:entries channel="{blog_channel}" limit="1" dynamic="no" sort="asc" disable="trackbacks|comments|categories|member_data|pagination|category_fields" require_entry="yes"}
{if no_results OR segment_3 !="" }
{redirect="404"}
{if:else}
Stuff here
{/if}
{/exp:channel:entries}
The segment 3 part works fine, but the no results doesn’t seem to work. If I throw in a non existent url: http://www.domain.co.uk/blog/nonexistenturl it still shows one of the other posts?