Link to home
Start Free TrialLog in
Avatar of gregnvt
gregnvt

asked on

How to customise the 404 not found reponse frpm Apache

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
Avatar of wanna_be
wanna_be

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.


Avatar of gregnvt

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of cianid3
cianid3

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial