Am using COdeigniter.. I have a .htaccess. ANd the problem is that the server when access www.example.com/notfoundimage.png which is not available on server, should redirect it to .404htm (designed error document template)... however instead, it gives a server error
HTACCESS:
ErrorDocument 404 /404.htm
ErrorDocument 400 /404.htm
ErrorDocument 403 /404.htm
ErrorDocument 500 /404.htm
Error when accessing non-existent file www.example.com/notfoundimage.png
Server error The website encountered an error while retrieving http://www.example.com/notfoundimage.png. It may be down for maintenance or configured incorrectly.
If i comment this line from htaccess
ErrorDocument 404 /404.htm
The error 404 (which should be) comes up. But i need the above line to redirect 404 to my template page: 404.htm