I have an application made with Codeigniter, and locally everything works correctly, but when I upload it to the server, the redirects do not work and I get an error of 500. What can be happening?
I have an application made with Codeigniter, and locally everything works correctly, but when I upload it to the server, the redirects do not work and I get an error of 500. What can be happening?
I suggest you try the following: at the root of the project edit your .htacces file or if you do not have it, create it and paste the following content
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]
And later in the path /application/config/config.php on line 38 you edit it as follows
$config['index_page'] = '';
This should be enough to make it work. It is worth remembering that in the same file on line 26 you must configure the BASE URL