diff --git a/.htaccess b/.htaccess
index 98eec8fe4a2bf45b1ab2d0afe7b6403ed4ae0719..442a5bd95f55461395a53567961f77fed39122d4 100644
--- a/.htaccess
+++ b/.htaccess
@@ -12,6 +12,9 @@
 Options -Indexes
 Options FollowSymLinks
 
+# Customized server error messages:
+ErrorDocument 404 /index.php
+
 # Set the default handler to index.php:
 DirectoryIndex index.php