RewriteEngine On
ErrorDocument 404 /404page.html
DirectoryIndex index.php login.php