Custom 404 page for dashboard

To tell your web server to use your custom error files, you’ll need to edit the .htaccess file in the main directory (where main index.php file resides) of your WordPress installation.

To ensure the server finds your 404 page, add the following line to your .htaccess file:

ErrorDocument 404 /wordpress/index.php?error=404