Orangescale Studio

You're here: Home » Blog » Getting 404 error code in Expression Engine

Getting 404 error code in Expression Engine

by Thomas Arie Setiawan — October 31, 2006

Few days ago, one of our clients -- he is from Australia -- contacted us. We worked on his design in December 2004. Wow, it has been almost two years. He wrote:

For some reason, all the links to templates in the blog have stopped working. This may have happened when the hosting company moved the site to another server -- I am not sure. In any case not one link is working, which suggests this is a systemic problem.

He is using Expression Engine. When we finished our work, all works. Nobody likes to have things not working properly, right? Then, I checked his website to find out the exact problems. The problem is: I always get 404 error (Page not found).

I was pretty sure that nothing wrong with the templates. The "weblog", "comments" and other templates were there. After digging in the Knowledge Base and Wiki, I found that:

On some servers that run PHP as a CGI process and do not support the PATH_INFO server variable, this may allow you to run your site without forced query strings. (source)

Now, if you also have this kind of problem (getting 404 error code), you can try these steps:

  • Login to your Expression Engine Control Panel
  • Go to: Admin » System Preferences » Output and Debugging Preferences
  • Find this setting: Force URL query strings This is a safety mechanism for servers that do not support the PATH_INFO variable. Set it to: Yes.

Now, everything works properly now. Anyway, we also upgraded our client's Expression Engine to the latest version: ExpressionEngine 1.5.1 Build: 20061016.

Hey, we learn a new thing! :)