CodeIgniter Forums
404 Page Not Found on my live server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: 404 Page Not Found on my live server (/showthread.php?tid=61379)



404 Page Not Found on my live server - smallbug - 04-11-2015

I have the following config.php:

PHP Code:
$config['base_url'] = 'http://'.$_SERVER['HTTP_HOST'].'/myfolder'  
$config
['index_page'] = 'index.php';
$config['uri_protocol'] = 'AUTO'

This works fine locally , but when I upload the project to the server ,
when I call the following URL :

http://example.com/myfolder/  

or

http://example.com/myfolder/index.php

It comes an error message: "404 Page Not Found"

Why?


RE: 404 Page Not Found on my live server - nfaiz - 04-11-2015

You can try to change the file name of controller to ucfirst


RE: 404 Page Not Found on my live server - smallbug - 04-11-2015

(04-11-2015, 12:22 PM)nfaiz Wrote: You can try to change the file name of controller to ucfirst

Thanks a lot! That works!