codeigniter redirect not working on server

0

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?

    
asked by Iagonzalez 09.05.2018 в 08:45
source

1 answer

0

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

    
answered by 21.05.2018 в 15:54