0

After developing an application using codeigniter,i have uploaded files to my server.I can successfully open the homepage but cannot navigate further.When i navigate 404 error is shown.Application has all the pages inside folders.

Also have given the baseurl as current folder :

http://www.xxxx.com/abc/

Routes :

$route['login'] = "home/login";

As a beginner in Codeigniter have no clues on whats happening. Note : Updated Htaccess file:

IndexIgnore *
ErrorDocument 404 /assets/php/404.php
ErrorDocument 403 /assets/php/403.php

RewriteEngine on
RewriteBase /

#These are the original rewrites, but might cause problems with some server configs.
#RewriteCond $1 !^(index\.php|assets|user_guide|robots\.txt)
#RewriteRule ^(.*)$ /index.php/$1 [L]

#These conditions are tested to work, and should be a better alternative to the commented ones above.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]


<FilesMatch "\.(ico|jpg|jpeg|png|gif)$">
Header set Cache-Control "max-age=290304000, public"
</FilesMatch>

Any help..

Tharif
  • 13,538
  • 9
  • 54
  • 76

0 Answers0