Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 3 routes don't work in HTTPS
#1

(This post was last modified: 11-30-2020, 07:54 AM by alfonsosach.)

In my work we are migrating some websites to HTTPS, but the routes have stopped working under HTTPS and the server returns error 404, they are just putting the /index.php/ and under HTTP they have been working correctly.
I've been searching but nothing I've found works

This is my config.php:

Code:
$config['base_url'] = 'https://myweb.es';
$config['index_page'] = '';
$config['uri_protocol']    = 'REQUEST_URI';


And this the .htaccess:

Code:
Options FollowSymLinks
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule>

Thank you in advance
Reply


Messages In This Thread
CodeIgniter 3 routes don't work in HTTPS - by alfonsosach - 11-30-2020, 03:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB