How to fix Error: 404 not found? |
[eluser]qpixo[/eluser]
While trying to upload CI files (application & system) on private directory and files (css, image) on public directory server, I got this 404 error not found "Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request." I'm trying to access a link of a site. However when using localhost every files, I don't have this error. I can see them all. Does anyone know how to fix that?
[eluser]jjDeveloper[/eluser]
did you change this application/config/config.php Code: $config['base_url'] = 'http://localhost/'; to be your correct url?
[eluser]talkingnews[/eluser]
Hello, I'm having a similar problem with CI 2.1 I've changed the base_url, too. In fact, over the last couple of hours, I've had so many iterations of the nginx config file, I'm going round in circles. Most people seem to point to this as a working example: http://www.farinspace.com/codeigniter-ng...ite-rules/ Here's the location block - although it says "ci_starter", I've also tried the "standard" CI download, just thought I'd try something else. Both are identical. Code: location ci_starter/ Incidentally, although I'm new to CI and I'm sure there's lots to learn, I see in index.php that it has the lines: Code: define('APPPATH', BASEPATH.$application_folder.'/'); Which would suggest that in my CI folder, under application/core/ there should be a file called CodeIgniter.php but this is found in system/core/ - in application/core there is only index.html with a 403 forbidden. I've turned on php error reporting, CI is in dev mode, and there's nothing to give me a clue, beyond 404. The 404 is being generated by CI, as it's definitely not an nginx error message. If I point it to a static text file in the folder, it works OK. On notice that in nginx debug logging, I see the lines 2012/02/06 20:31:13 [debug] 21926#0: *506 http copy filter: 0 "/ci_starter/index.php?" 2012/02/06 20:31:13 [debug] 21926#0: *506 http finalize request: 0, "/ci_starter/index.php?" a:1, c:1 Where is that ? coming from? Given that I've also tried $config['index_page'] = ''; , should that index and ? even be there? As I say, been a few hours now, so I'm starting to go round in circles. |
Welcome Guest, Not a member yet? Register Sign In |