user2951386
user2951386

Reputation: 261

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.

Upvotes: 19

Views: 85985

Answers (4)

Edphp
Edphp

Reputation: 3

I encountered the same issue, but I moved my site from another server to current and in the process, uploaded all files to google drive and downloaded to current server, that changed names of all .* files to _*

I changed all names back to .* and was able to connect to subsequent pages of my codeigniter website.

Upvotes: 0

nitol arafat
nitol arafat

Reputation: 1

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

Upvotes: 0

Oussama
Oussama

Reputation: 633

your rewrite rule should be like this

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

Upvotes: 3

Hasib Tarafder
Hasib Tarafder

Reputation: 5813

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

Upvotes: 52

Related Questions