CodeIgniter project shows 404 error in nginx server - codeigniter

I have a Codeigniter project which is already created in XAMPP server and its working fine.For some reason, my client wants to shift it to Nginx server. In Nginx server, only default controller is loading.the other pages are showing 404 error. Is there anything I need to setup in Nginx server.I have an another Codeigniter project which is working perfectly in Nginx server.
Is there anything I have to change in my Codeigniter file
I have tried with
http://localhost/Project1/website_progressing/ this is working fine
home.php is my default controller which shows 404 error
http://localhost/Project1/website_progressing/home

Related

Laravel project behind Traefik, error 302 for CSS and Javascript

I am running a Laravel Docker with PHP and Nginx. This container is sitting at the back of Traefik.
For content from /public/assets/admin/ , I am getting a 302 error and then 404. The application runs well in the local LAMP environment.
Any clue ? Adding couple of pictures.

Laravel Home page return 404 after setup in my local from server

I setup laravel server code to in my localhost, update data details. But I'm facing issue for Sorry, the page you are looking for could not be found. I'm run with localhost/sitename/public but return 404.

I have created a subdirectory in my codeigniter Application But its Showing 404

I have application in the application in my domain. Domain.com is working fine with CodeIgniter 2.26 release and now I am updating it on new version 3.x and its working fine on localhost. I uploaded the new version on C-panel domain.com/newversion and my default controller and all routes are perfect but still showing 404 not found.

move codeigniter project from localhost to live server

Trying to move the codeigniter project from laptop server to live server. Uploaded the files in Public_HTML and I modified the config.php, base_url, .htaccess as needed and also upgrade the Database... when i run project default controller called correctly when other controller can not call this message show 404 Page Not Found. config.php and .htaccess files update as correct information. This same project run successfully on Local or Desktop server but produce Error on live server 404 Page Not Found home controller (default controller) call but other controller not call.
What is your server? And whats your configuration file?
Make sure you enable mod rewite if you are using apache
a2enmod rewrite
Have you removed index.php from url? Try to access another controller like this.
<domain>/index.php/<controllername>

error when accessing laravel project in ubuntu server 16.04

I have problem when i try to access my webapp in my ubuntu server 16.04..
when i try to type my server ip with the laravel folder it showing this message,
The requested URL /laravel_spk-matautama/home was not found on this server.
but then i try to put index.php on my link like this url
http://xxx.xxx.xxx.xxx/laravel_spk-matautama/index.php/home
it works, but the problem is it wont embed the masterpage layout.
Do like this, to access your home page
http://xxx.xxx.xxx.xxx/laravel_spk-matautama/public

Resources