CodeIgniter Forums
404 on server works well on wamp - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: 404 on server works well on wamp (/showthread.php?tid=34435)



404 on server works well on wamp - El Forum - 09-29-2010

[eluser]sahanlak[/eluser]
I just uploaded my ci website to the server(Linux, shared, justhost) I developed it under wamp but in the server it throws an 404 error. Why is that? Sad


404 on server works well on wamp - El Forum - 09-29-2010

[eluser]techgnome[/eluser]
did you remember to change the base url setting in the config file before uploading it? (it's a common thing... I've done that (or not done it as was the case) three times in the last week and I'm sure I'll do it again.)

-tg


404 on server works well on wamp - El Forum - 09-29-2010

[eluser]laytone[/eluser]
also check the capitalization of all your files.. on my windows machine case doesn't matter, but linux will often not know that home.php is the same as Home.php


404 on server works well on wamp - El Forum - 09-30-2010

[eluser]sahanlak[/eluser]
hello,

Base url is correct, my application folder is out of system folder. My default controller is Home.php and routes had it as "home" but I changed it to Home and still I'm getting the 404.


404 on server works well on wamp - El Forum - 09-30-2010

[eluser]laytone[/eluser]
ci wants the file name to be lowercase.


404 on server works well on wamp - El Forum - 09-30-2010

[eluser]sahanlak[/eluser]
@laytone

Thanks a lot, I renamed my controllers to lower case and now working.


404 on server works well on wamp - El Forum - 09-30-2010

[eluser]laytone[/eluser]
Glad I could help