We help IT Professionals succeed at work.
Get Started

Apache/Tomcat error page redirection question

lmbotg asked
Last Modified: 2010-03-17
I have the need to redirect visitors to my site to different error pages depending on the type of element missing. For example, if the element that is missing is an image file (e.g. *.jpg, *.gif), then I want to present them with a custom 404 error page. If the missing element is an entire page, then I want to present them with a completely different 404 error page.

I know that I can set Tomcat to catch the 404 errors and present a custom page, but what I need to know is can I get as granular as I need to get using the configuration, or do I have to put this in an jsp file and solve it programmatically?


Watch Question
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE