I have the following code in the template:
{if segment_2!='' AND segment_2!='category'}
{exp:weblog:entries weblog="tariffs" require_entry="yes" disable="member_data|pagination|trackback" limit="1"}
{if no_results}
{redirect="404"}
{/if}
<h1>{title}</h1>
{page_body}
{/exp:weblog:entries}
{/if}
{if segment_2=='category'}
Blah
{/if}As far as I’m concerned, one should see that “Blah” on http://my-site.com/index.php/tariffs/category/some_category_name, because the first conditional is totally ignored. However, I get a 404. But! If I replace {redirect="404"} with anything else, say “foo”, I see that “Blah” — everything works as expected.
Thanks in advance for your support.