Du kan använda .htaccess för att visa dina besökare en egen felsida, istället för ett standardfelmeddelande från servern. De vanligaste felen att skapa sidor för är:
Page Not Found (404)
Forbidden – Access Denied (403)
Lägg till följande kod i din .htaccess-fil:
ErrorDocument 403 http://one-example.com/forbidden.html ErrorDocument 404 http://one-example.com/notfound.html
Ersätt http://one-example.com/forbidden.html och http://one-example.com/notfound.html med med sökvägen till dina egna felmeddelanden.