Welcome Guest, Not a member yet? Register   Sign In
404 index not found
#1

Hello,

i have a web application that is work on wamp on windows server and its work fine, i moved the application folder to linux ubuntu 16.4 with apache.

i see the permission and apahe config.
when i try to open the application is't give me 404 page not found
under ci log the error is page not found index
i enable devlopment mode but no error found.
i change the log level to 4
the log file:
INFO - 2018-03-16 23:20:10 --> Config Class Initialized
INFO - 2018-03-16 23:20:10 --> Hooks Class Initialized
DEBUG - 2018-03-16 23:20:10 --> UTF-8 Support Enabled
INFO - 2018-03-16 23:20:10 --> Utf8 Class Initialized
INFO - 2018-03-16 23:20:10 --> URI Class Initialized
INFO - 2018-03-16 23:20:10 --> Router Class Initialized
INFO - 2018-03-16 23:20:10 --> Output Class Initialized
INFO - 2018-03-16 23:20:10 --> Security Class Initialized
DEBUG - 2018-03-16 23:20:10 --> Global POST, GET and COOKIE data sanitized
INFO - 2018-03-16 23:20:10 --> Input Class Initialized
INFO - 2018-03-16 23:20:10 --> Language Class Initialized
ERROR - 2018-03-16 23:20:10 --> 404 Page Not Found: /index
i tried to change database to wrong settings and its give me the same error with same log.

thanks.
Reply
#2

Do you open the site with the following url?
http://domain.com/index

Can you open the following url without error?
http://domain.com

If that's the case your .htaccess aren't loading.
https://help.ubuntu.com/community/Enabli...ccessFiles

Change your apache settings to load .htaccess file or include in your site settings
AllowOverride All
Reply
#3

Check your controller filenames, first letter must be uppercase.

https://www.codeigniter.com/userguide3/g...llers.html
Reply
#4

Hello,
There are a couple reasons you might see this: Race condition. You or your app may be trying to access an index before it was created.
To Fix the 404 Not Found Error:
1.Retry the web page by pressing F5, clicking/tapping the refresh/reload button, or trying the URL from the address bar again.
2.Check for errors in the URL.
3.Move up one directory level at a time in the URL until you find something.
4.Search for the page from a popular search engine.
Regards,
Mika Hawkins
Mika Hawkinsss
Reply




Theme © iAndrew 2016 - Forum software by © MyBB