PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, March 12, 2022

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

 March 12, 2022     codeigniter, php     No comments   

Issue

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?


Solution

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



Answered By - muya.dev
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing