How would one go about enabling a custom 404 page on a 404 request, while retaining the same URL in the address bar instead of it looking something along the lines of http://yourwebsite.com/error.html.
Just add the following line to your htaccess file in your root web directory:
ErrorDocument 404 /404page.html
Then make 404page.html contain whatever text you wish to display to the user.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With