Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

We know some time when we are open any link on our website we then browser are display following massage

Not Found

When the requested URL /test.html was not found on this server.

We know additionally, a 404 Not Found an error was encountered while it will trying to use an ErrorDocument to handle the request. On this problem fix by .htaccess

Now need to write following code in your .htaccess file

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Read Also : How to Open Link in New Window by using Javascript ?

Thanks for read. I hope it help you. For more you can follow us on facebook.


About Shahriar Sagor

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by Shahriar Sagor →