2

Don't know if this question is appropriate here.

I created an Alias directed to the root folder of the website (right now running on localhost). In the root folder, I have a custom 404 page, and I've added a .htaccess file in that folder with the "ErrorDocument 404 /404.html" line, but it still doesn't work.

I'm pretty new to this stuff (web servers), so I must be missing something obvious. Any suggestions greatly appreciated.

1
  • what has the error_log of apache to say about this problem? – Christian Feb 3 '10 at 11:42
1

Never mind, just looked at the Apache Documentation, needed to add the ErrorDocument directive in the Alias.

2
  • Can you close the question then? – ℝaphink Feb 3 '10 at 13:11
  • Wouldn't it be better to more fully document the problem and answer as opposed to closing the question? That way someone in the future might google "custom 404 page problem" and find the answer here. – thepocketwade Feb 3 '10 at 21:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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