Unexpected Page not found 404 Error in Server |
[eluser]Anes P.A[/eluser]
Hello Pals, I am a newbie in CI . I am now just studying it's Basics. I done a Sample Example Form program in localhost and it work there , but when I upload same in FTP on submit the page go to Not Found 404 page. What is the problem there ? I am using a free FTP Site hosting. Pls give an answer . If you have any Working sample with Model,View,Controller pls send that to test in Server. my test url is : http://anesworld.zxq.net/codeIgniter/ With Regards Anes P.A
[eluser]unsub[/eluser]
have you set your config['base_url'] to the proper place? That might do it. If you were using it on your testing server you probably had it set to http://localhost/codeigniter, or whereever it was, so now you need to open up application/config/config.php and change it to your live server. Or you could use the HTTP_HOST way, I think it's this: Code: $config['base_url'] = "http://".$_SERVER['HTTP_HOST']."your_subdomain_here/"; then you don't have to change it when you move it.
[eluser]Anes P.A[/eluser]
HELLO SIR, Thanks For Your apt reply . But according to you I already given that base_url path correctly . in my system that path is $config['base_url'] = "http://anesworld.zxq.net/codeigniter/"; But when I check on the cache directory path it is the oldest localhost one , $config['cache_path'] = 'http://localhost/codeigniter/cache/'; $config['cache_path'] = 'http://anesworld.zxq.net/codeigniter/cache/'; But Real problem that is not. It's a problem in Giving the directory name. I give directory name as "codeIgniter" and in configuration as "codeigniter" just a typo in name. That make the problem , I got that solution . Sir Now I got a database Error like A Database Error Occurred Unable to connect to your database server using the provided settings. I think it's the wrong connection Details I given. Any way Thanks For your Help and Keep in touch with me. With Regards Your Anes |
Welcome Guest, Not a member yet? Register Sign In |