Move from localhost to live server error 404 |
I really suck in codeigniter and so I search for a solution for my problem.
I programmed a website which perfectly works on my localhost. Now I uplouded the project with filezille on a live server and get the 404 error. Of course I changed the base url in my confiq.php: Code: $config['base_url'] = 'http://test.mypage.de/userid/'; But still get the error. My .htaccess looks that way: Code: <IfModule mod_rewrite.c> Does somebody see my fault? I already read everthing I coud find in the web to this problem, but most things I either don´t understand or it does not help me. I hope someone here has a hint for me. Best regards guys, a desperate programmer girl.
Dis you follow the CI file and class name style
http://www.codeigniter.com/user_guide/ge...ile-naming
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
Your live server under is Linux?
Your localhost is under Windows? If so, the problem is most likely the capitalisation of names of controller and method. (09-19-2016, 03:00 PM)wolfgang1983 Wrote: Dis you follow the CI file and class name styleyes, I changed the file names and wrote everywhere a capital letter (in the controller and in the model directory) (09-20-2016, 02:13 AM)Aerondight Wrote: Read http://stackoverflow.com/questions/23546...not-server before? yes I did. I changed in the conroller, model and core directory the first letter to a capital letter but I still get the 404
Remove that htaccess file, update your application/config to use index.php , and see if it works with 'index.php' in the url address. if it does work then contact your hosting company to get help with configuring the htaccess file for your server.
If it does not work then do a 'sanity check'. Download a new copy of Codeigniter. Install it on your live web server with no htaccess. See if you can get the default welcome page. If you don't get the welcome page then something needs to be configured on the server. If you do get the welcome page then start adding routes, helpers, database, etc to try and isolate the issue. |
Welcome Guest, Not a member yet? Register Sign In |