⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Works locally, 404 Page Not Found on server



byubi
  • profile picture
  • Member

Posted 30 December 2015 - 15:10 PM

Hi, this is my first time using GC and CI, I tried to shearch for a solution but found none.

On wamp everything works fine my project is in wamp\www\myproject\admin\

in base_url I put 'http://localhost/theatre/admin/'

and I access the page through http://localhost/myproject/admin/index.php/admin

 

Now on the server, my project in public_html/admin/

base_url is 'http://atid.hostingsiteforfree.com/admin/'

and when I open http://mydomain.com/admin/index.php/admin/   I get 404 Page Not Found

 

 

Any help would be appreciated.

 

PS: when I open http://mydomain.com/admin/index.php/  I get codeIgniter welcome page.


byubi
  • profile picture
  • Member

Posted 30 December 2015 - 15:42 PM

I found the problem.

On a server, the class name and the file name both need to start with a capital letter. So if the class name is 'Admin', the file name needs to be 'Admin.php', otherwise, CodeIgniter will throw a 404 error. 


Amit Shah
  • profile picture
  • Member

Posted 06 January 2016 - 02:41 AM

checkout the version of codeigniter on the server - if its version 3 - thats the prominent change you need to deal with. 


Luis David Jiménez
  • profile picture
  • Member

Posted 04 August 2016 - 17:40 PM

I found the problem.

On a server, the class name and the file name both need to start with a capital letter. So if the class name is 'Admin', the file name needs to be 'Admin.php', otherwise, CodeIgniter will throw a 404 error. 

 

Man, Really Really Thank you!!! you resolve my issue, i spend 3 days on it