Can't even get the installation right - (404 page not found error message) |
[eluser]bingecoder[/eluser]
Hi all; I am on an 1and1 server and I have put codeigniter in the following directory of my site www.mysite.com/codeigniter. Now this means that the path to applications directory is www.mysite/codeigniter/system/application/. This is content of the relevant part my config.php : Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); However when I navigate to www.mysite.com/codeigniter/ all I get is a 404 page not found error. Am I doing this right ?
[eluser]coolfactor[/eluser]
2 questions: - Where do you have your index.php file? - have you configured index.php correctly?
[eluser]Michael Wales[/eluser]
He shouldn't have to make any changes to index.php. I would make sure index.php is in the /codeigniter/ directory like you mentioned as well as ensuring you haven't made any changes to routes.php. The default controller listed there must exist.
[eluser]bingecoder[/eluser]
I have not touched index.php nor any other file (except database.php). The path is www.mysite.com/codeigniter/index.php
[eluser]MadA[/eluser]
I'm having the exact same problem. Everything worked fine on my 'localhost' test environment, but once I moved it to my ISP's server it stopped working. The URL www.myhost.com/myapp (or www.myhost.com/myapp/index.php ) works, but when calling a controller (e.g. www.myhost.com/myapp/index/php/registration) it gives me a 404. What am I missing here? (PHP version on my ISP's servier = 4.4.4)
[eluser]phpMaster[/eluser]
hi! Many many many many softwares have not an intelligent wayof setting BASE-URL. I dont know if this is your case but I make 99% of my PHP work and applications admin from http://localhost/ now, if I set base-url in a software (sometimes even in the database!) like this: http://localhost/app/ then nobody else but me can use my app. If I set base-url like this: http://www.mydomain.com/app/ then I can not admin my apps (unless I connect via some proxy server) This is how I have set config of my CodeIgniter ( and a whole bunch of other less intelligent softwares ) Code: /* Adding a couple of more lines, it is even possible to detect if it should be either of: https:// http:// This way it will work whatever URL alias is used to visit your site! yourdomain.com, localhost, 127.0.0.1, 192.168.0.1 etc etc And if you change your domain name, you wont have to change a thing. Regards- phpMaster
[eluser]bingecoder[/eluser]
Hi all; I can't still get the basic install working . All I get is a 404 error. I am using a 1and1 production server with PHP5. I have posted contents of my config.php above. I have not altered any other file except database.php. Thanks
[eluser]coolfactor[/eluser]
Have you played with the "uri_protocol" value in config.php? Some servers don't like the default "AUTO" value. |
Welcome Guest, Not a member yet? Register Sign In |