Question : custom 404 page codeigniter 4
Answered by : portapipe
$routes->set404Override(function(){ return view('your_filename');
});
Source : https://stackoverflow.com/questions/61525214/how-to-custom-404-page-not-found-in-codeigniter-4 | Last Update : Sun, 27 Jun 21
Question : 404 page not found codeigniter
Answered by : vasanth-kumar
#Ubuntu 18.04
1.Add this in 000-default.conf or sitename.conf inside /etc/apache2/sites-enabled/ <Directory /var/www/html> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
2. And restart (sudo service apache2 restart)
Source : https://stackoverflow.com/questions/18740419/how-to-set-allowoverride-all | Last Update : Mon, 08 Mar 21
Question : CodeIgniter 404 function
Answered by : joynal-abedin-xc9fbppd3fxc
#I use this function to manually enforce a 404:
return show_404();
Source : | Last Update : Wed, 17 Aug 22
Question : codeigniter 404
Answered by : davide-frova
In the root of the project add a file .htaccess with this
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
Source : | Last Update : Sat, 03 Feb 24