?
Solved

How to customise the 404 not found reponse frpm Apache

Posted on 2003-03-20
4
Medium Priority
?
197 Views
Last Modified: 2010-04-20
I have a web server running SME Server from Mitel (red hat based) with apache. I need to customise the response from apache when it can not find a specific web page on the server.

For example:

A person trys to view a page on our web site which has been deleted or moved. It will currently throw up "Error 404 not found" We need to auotmatically send them back to the index.htm page "of that domain" and not throw up an error page.

Where can we customise this in apache?

Is there a solution available?

Kind regards
Greg Anderson
0
Comment
Question by:gregnvt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Expert Comment

by:wanna_be
ID: 8178737
create .htaccess file

put this line there (using url for your 404 page)

ErrorDocument 404 http://domain.com/whateverfile

there's a bug that IE won't display the page if it's over 500kb in size. or less than 500kb. i forget =).

hope this helps.


0
 

Author Comment

by:gregnvt
ID: 8178818
Hello

Thank you for the info. In creating the .htaccess file, where do we put this file?

Is the a directory these are loacted in?

Really appreciate your help :0)

Greg
0
 

Accepted Solution

by:
cianid3 earned 250 total points
ID: 8185111
.htaccess file goes in the dir the files are located in.
I beleive you can also define this in the apache conf file.

0
 

Expert Comment

by:wanna_be
ID: 8204160
...
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question