ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 article name), it works just fine, but when i go to 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 article name)?

share|improve this question
up vote 4 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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