Welcome Guest, Not a member yet? Register   Sign In
Strange redirect
#1

Hello,

I'm since codeigniter2 using the framework with great joy, and now i want to upgrade my application from codigniter3 to 4 and its going well without any great problems but i found something i cant put my finger on it what the solution is.

My site is working with https behind an reverse proxy when i'm using the following url https://www.mysite.com/index.php/home/test its working fine when i have i have https://wwww.mysite.com/index.php/ then its redirect to http://mysite.com/index.php.

I have comment out the following line's in the .htaccess but its not working:


# Rewrite "www.example.com -> example.com"
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]

I have also set the variable $forceGlobalSecureRequests to false but not solution, is there somebody can help or has some advise for me where to look into this issue?

Kind regards,

whatsnow
Reply


Messages In This Thread
Strange redirect - by whatsnow - 08-12-2023, 03:11 AM
RE: Strange redirect - by shortcode - 08-12-2023, 01:05 PM
RE: Strange redirect - by luckmoshy - 08-12-2023, 11:57 PM
RE: Strange redirect - by whatsnow - 08-13-2023, 02:21 AM
RE: Strange redirect - by whatsnow - 08-17-2023, 08:21 AM
RE: Strange redirect - by whatsnow - 09-21-2023, 04:39 AM
RE: Strange redirect - by dariberku - 10-22-2023, 09:11 AM
RE: Strange redirect - by FlavioSuar - 10-23-2023, 04:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB