404 error from codeigniter when hosted to server (tried every possible conditions) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: 404 error from codeigniter when hosted to server (tried every possible conditions) (/showthread.php?tid=73754) |
404 error from codeigniter when hosted to server (tried every possible conditions) - chinna - 05-31-2019 im getting 404 error when i hosted to server i checked capital letter at starting. Please some one help me. RE: 404 error from codeigniter when hosted to server (tried every possible conditions) - InsiteFX - 05-31-2019 Did you change your base url in the config.php file to point to your domain? RE: 404 error from codeigniter when hosted to server (tried every possible conditions) - chinna - 05-31-2019 (05-31-2019, 03:18 AM)InsiteFX Wrote: Did you change your base url in the config.php file to point to your domain? yes i did RE: 404 error from codeigniter when hosted to server (tried every possible conditions) - dave friend - 05-31-2019 Are you trying to use any special routes? Please show us the code for the controller and view of one such page. RE: 404 error from codeigniter when hosted to server (tried every possible conditions) - chinna - 05-31-2019 (05-31-2019, 04:57 AM)dave friend Wrote: Are you trying to use any special routes? index is working but login is showing 404 error RE: 404 error from codeigniter when hosted to server (tried every possible conditions) - dave friend - 05-31-2019 (05-31-2019, 05:39 AM)chinna Wrote:(05-31-2019, 04:57 AM)dave friend Wrote: Are you trying to use any special routes? In the welcome() function the last line is PHP Code: $this->load->view('loginn"); Should "loginn" be "login"? If it should be "login" that may be the source of the 404. In the future please copy and paste all code into the message editor, then use the PHP button in the toolbar to make it as PHP code. It's less work for everybody in the long run. Thanks. RE: 404 error from codeigniter when hosted to server (tried every possible conditions) - dave friend - 05-31-2019 If the .htaccess file you show is in the website's public folder then you should delete the following code Code: <IfModule authz_core_module> You don't want to deny access to the web server, do you? RE: 404 error from codeigniter when hosted to server (tried every possible conditions) - chinna - 05-31-2019 (05-31-2019, 08:03 AM)dave friend Wrote:no bro its correct(05-31-2019, 05:39 AM)chinna Wrote:(05-31-2019, 04:57 AM)dave friend Wrote: Are you trying to use any special routes? RE: 404 error from codeigniter when hosted to server (tried every possible conditions) - chinna - 05-31-2019 (05-31-2019, 08:18 AM)dave friend Wrote: If the .htaccess file you show is in the website's public folder then you should delete the following code deleted still not working RE: 404 error from codeigniter when hosted to server (tried every possible conditions) - Paradinight - 05-31-2019 (05-31-2019, 05:39 AM)chinna Wrote:(05-31-2019, 04:57 AM)dave friend Wrote: Are you trying to use any special routes? First fix the password code... . https://paragonie.com/blog/2017/12/2018-guide-building-secure-php-software#secure-php-passwords Second: https://www.codeigniter.com/user_guide/installation/upgrade_300.html?#step-13-check-for-usage-of-the-xss-clean-form-validation-rule Third: Update the php version 5.5 is very old Back to the problem: Check if the .htaccess is allowed |