404 error from codeigniter when hosted to server (tried every possible conditions) |
Let me write you an example from the scratch:
1- create a controller named Mysite Inside this Mysite file: public function index() { $this->load->view('index) ; // it shows your website-view- is not under a folder.. If under a folder then - >view(' Folder/viewfile') } If your public function name is not index, then be careful about routing. 2- Create your view. Either under a folder or not: directly in your view folder 3- arrange the route (you have learnt it) 4- some adjustments like config 5- upload your htaccess. Plus, this link might help : https://stackoverflow.com/questions/2486...er-project I'm trying my best on mobile. Hope it helps. |
Welcome Guest, Not a member yet? Register Sign In |