I want to redirect the Codeigniter 3 website from http to https.
This is my .htaccess file:
RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond $1 !^(index\.php|resources|robots\.txt|static) [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/?$1 [L,QSA]
I get this error:
Firefox has detected that the server redirects the request to this address in a way that will never be completed.
redirect php codeigniter .htaccess mod-rewrite
Glueear
source share