Welcome Guest, Not a member yet? Register   Sign In
404 on server works well on wamp
#1

[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
#2

[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
#3

[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
#4

[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.
#5

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

[eluser]sahanlak[/eluser]
@laytone

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

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




Theme © iAndrew 2016 - Forum software by © MyBB