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 on
RewriteCond $1 !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ 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]