Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codeigniter “The requested URL was not found” error

I downloaded project the my server then I changed config file and database as usually and finally i deleted the htaccess file that is in the main folder. Now i can go to my home page but i can't go to other links in my site and i got this error.

**Not Found
    The requested URL /utripes/auther/signup signup was not found on this server.**

How can i fix this error. please need quick help. than you.

like image 257
user2951386 Avatar asked Feb 12 '14 08:02

user2951386


2 Answers

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..

like image 156
Hasib Tarafder Avatar answered Oct 12 '22 11:10

Hasib Tarafder


your rewrite rule should be like this

RewriteRule ^(.*)$ /new/index.php?/$1 [L,QSA]
like image 22
Oussama Avatar answered Oct 12 '22 10:10

Oussama