I want to create a personalized 404 error page
in php , I want to it works in localhost, as you know the localhost does not have .htaccess file !
You can create a .htaccess file in your localhost. Simply make sure it is in the root directory of your web server (I believe in WAMP, it's the www folder). In XAMPP, it's the htdocs folder
Then in your .htaccess file, you simply need something along the lines of:
ErrorDocument 404 /path/to/error/404/page
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