Published by Mijingo

movie icon image

EE Insider Blog

Spend your time learning and developing sites with ExpressionEngine and we'll use this blog to keep you informed of all the news related to ExpressionEngine and CodeIgniter.

» Read more in the Archives.

» Have a tip? Send us your EE news.

Learn ExpressionEngine Today

Over a series of 8 videos, watch and learn as Ryan builds an entire ExpressionEngine website from beginning to end. Get started now.

How to do 404s in ExpressionEngine

Ryan Battles put together a nice round-up of the ins and outs of ExpressionEngine 404 pages. And it’s all because of this:

In ExpressionEngine, if someone types in an incorrect page address, by default they are sent to the homepage.  If they have typed in a proper template group name, but an invalid URL segment, they may see a working page and not know that they typed in an invalid URL.

Read through the entire write-up (which went through an extensive rewrite after great contributions in the comments) and don’t you dare skip the comments! There are a lot of great ways to handle 404s and we’ve all built a site that could use better handling of missing pages and incorrect URLs.

Related: Rob “Papa” Sanchez’s HTTP Header plugin.

Posted on Feb 21, 2011 by Ryan Irelan

Filed Under: Development Tools, ExpressionEngine 2

Ryan Battles13:30 on 02.22.2011

Thanks for the mention.  It motivates me to find new topics to put out there for community reference!