Reputation: 261
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
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
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
Reputation: 633
your rewrite rule should be like this
RewriteRule ^(.*)$ /new/index.php?/$1 [L,QSA]
Upvotes: 3
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