Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Forced HTTPS wrong redirect #3260

Closed
WaaaghNL opened this issue Jul 10, 2020 · 6 comments
Closed

Bug: Forced HTTPS wrong redirect #3260

WaaaghNL opened this issue Jul 10, 2020 · 6 comments
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@WaaaghNL
Copy link

Describe the bug
When $forceGlobalSecureRequests == True; then the redirect creates a strange URI scheme http://ci.domain.com/ redirects to https://https//ci.domain.com// and it adds an extra tailing / to the end of an url if you add the / on the end of .com

CodeIgniter 4 version
Latest version that composer is pulling down with composer create-project codeigniter4/appstarter project-root

@WaaaghNL WaaaghNL added the bug Verified issues on the current code behavior or pull requests that will fix them label Jul 10, 2020
@michalsn
Copy link
Member

I was able to recreate the issue with the extra trailing slash, but not with "extra" https//.

  • Can you tell us what server are you using?
  • Are there any changes made to the .htaccess file?
  • What is your baseURL?

As I understand, if you try to enter http://ci.domain.com/ address then you're redirected to the https://https//ci.domain.com//?

@WaaaghNL
Copy link
Author

WaaaghNL commented Jul 11, 2020

Server info

cPanel Version | 88.0 (build 12)
Apache Version | 2.4.43
PHP Version | 7.3.19
MySQL Version | 10.2.32-MariaDB
Architecture | x86_64
Operating System | linux

Changes to HTACCESS
None, just a clean download using the latest composer version. no addons like auth etc.

Changes to App.php

public $baseURL = 'https://ci.domain.nl/';
public $appTimezone = 'Europe/Amsterdam';
public $forceGlobalSecureRequests = false;

@michalsn
Copy link
Member

public $forceGlobalSecureRequests = false;

Isn't it set to true?

@WaaaghNL
Copy link
Author

Correct, switched it back so i can start to build something

@michalsn
Copy link
Member

Okay, thanks.

@samsonasik
Copy link
Member

should can be closed in favor of #3292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

3 participants