Hi,
I’m trying to display 404 whenever the segment_2 is not a valid url_title.
I’ve enabled strict URLs in the control panel.
My template code looks something like this:
{exp:channel:entries channel="blog" limit="1" disable="member_data|pagination" dynamic="yes" require_entry="yes"}
{if no_results}
{redirect="404"}
{/if}The thing is the no_results conditional isn’t working. It shows nothing…
I tried with text instead of the redirect and it doesn’t show either.
Any suggestions?
Thanks,
Lu