Codeigniter “The requested URL was not found” error Codeigniter “The requested URL was not found” error codeigniter codeigniter

Codeigniter “The requested URL was not found” error


As you delete the htaccess file from your project root directory so your url should include index.php.

I recommend that you include the htaccess file in your project root directory and paste the following code into the htaccess file..

RewriteEngine onRewriteCond $1 !^(index\.php|public|\.txt)RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php?$1

I think now your project should work fine..


your rewrite rule should be like this

RewriteRule ^(.*)$ /new/index.php?/$1 [L,QSA]


<IfModule mod_rewrite.c>    RewriteEngine On    #RewriteBase /your_project/    RewriteCond %{REQUEST_URI} ^system.*    RewriteRule ^(.*)$ /index.php?/$1 [L]    RewriteCond %{REQUEST_FILENAME} !-f    RewriteCond %{REQUEST_FILENAME} !-d    RewriteRule ^(.*)$ index.php?/$1 [L]</IfModule><IfModule !mod_rewrite.c>    ErrorDocument 404 /index.php</IfModule>