Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do you change the default page that says "this page is not found on this server"?

Where is it located so i can change it? Because i want to change if for my own.

Its the 404 error ("page not found"), like this is a example of a server pages not found

Just to be clear the page is not their i just want to change the page that is shown if that page is not found on that server.

share|improve this question

closed as off topic by Marco Ceppi Feb 3 '12 at 21:09

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
is that better ... –  ryan Feb 3 '12 at 20:32
    
add comment

1 Answer 1

up vote 0 down vote accepted

Add the following line to your .htaccess file

ErrorDocument 404 /404.html

where 404.html is the name of your html document which will show when handling 404 error.

share|improve this answer
add comment

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