user6617474 user6617474 - 3 months ago 32
PHP Question

Getting error in codeigniter : a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request

Earlier my menus were working fine and suddenly it started giving error


Not Found The requested URL /allbound/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


How can I resolve this issue?

Answer

You have to edit the access url.

In this case access the url like this http://dograpublicschool.com/?ndex.php/confluent/travelling/flightsd. It is working with me.

Remove index.php in codeigniter

You can remove the index.php by editing your .htaccess as shown below

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

Hope that helps. Thanks