Jump to content

COnfig - ignore HTTPS on localhost


Peter Knight
 Share

Recommended Posts

Hi all

My .htaccess file is correctly redirecting all requests to

  1. https://
  2. www.

That's great until I want to work locally.

I thought I had seen a blog post by Ryan where there was a new config setting to ignore both of these if working from localhost?

I can't find it now so wondering if I was imagining ?

 

 

Link to comment
Share on other sites

  • 9 months later...
On 5/7/2020 at 3:37 PM, Jan Romero said:

If I'm reading this right, the config setting ...

// ignore HTTPS for these hostnames:
$config->noHTTPS = [
  'test.domain.com',
  'localhost:8888',
]; 

only over rides any HTTPS settings set in the template settings. 
If you have HTTPS set in the .htaccess, it's a different issue.

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...