I'm interested in redirecting to a 404 if no category exists at the URL, for example if category xyz doesn't exist at; mydomain.tld/shop/category/xyz
I'm using Switchee and a case value for category as follows;
{exp:switchee variable="{segment_2}" parse="inward"}
{case value="category"}
{!-- Redirect to 404 if no category exists here --}
{/case}
{/exp:switchee}
Wondering if anyone knows how to do a redirect here if a matching category is not found?
Thanks.