my google-fu failed again, and i have a serious problem. I have a channel and template for it called html, when i go to page.com/html/(existing article name), it works just fine, but when i go to page.com/html/(non-existing article), it shows the article with lowest ID instead. So what am i asking for? How to redirect user to 404 page, when he opens page.com/html/(non-existing article name)?

1 Answer 1


You need to use the require_entry parameter:

{exp:channel:entries limit="1" require_entry="yes" [...]}
  {if no_results}

This parameter make the {if no_results} conditional available.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.