Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Which file do i Edit in fedora to set the 404 page

I looked at php.ini couldn't find anything in there

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

The 404 error page depends on the web server, not PHP.

If the webserver is apache, the 404 error message or page displayed is controlled by the ErrorDocument directive.

apache documentation related to custom error pages

share|improve this answer
    
Where is the apache config edit file? –  Sparky Dec 6 '09 at 16:10
    
P. S. I would vote you up but i require 15 reputation points :( –  Sparky Dec 6 '09 at 16:11
    
it is usually /etc/apache2 or /etc/httpd. I don't use Fedora so it may differ a bit –  zecrazytux Dec 6 '09 at 16:13
    
ty found it................ –  Sparky Dec 6 '09 at 16:18
    
Note that you can also do 404 redirection from the .htaccess file, which means you can override the server default and have different 404s for different sites/directories. –  fencepost Dec 6 '09 at 16:22
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.