How to hide the file name of 404.php in URL?

How to hide the file name of 404.php in URL?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)