Welcome Guest, Not a member yet? Register   Sign In
Virtual hosting is forcing https
#1

hi, I am Brazilian so sorry the bad English, this is my first post here sorry if i make thing wrong.

I am codeigniter 3 user and I starting migration for ci 4 reading the docs, in the docs is recommended use virtual hosting and i succed but the codeigniter is forcing the https protocol and this is bad because i don't have a certifiqued. I open the file public/.htaccess and I saw that he is sending all requests to https. the question is I realy need change the .htaccess file every time or has a configuration for change this?

Thank you and sorry any thing.
i love cli
i love ci
Reply
#2

I'm sorry but you must have turned on the $forceGlobalSecureRequests setting, there are nothing in public/.htaccess that force an secure connection.
Reply
#3

i have discovered what happened, my server name in hosts was .dev and the Google pay the .dev domain e force all requests to .dev to be https.
i love cli
i love ci
Reply
#4

(This post was last modified: 06-25-2020, 08:48 AM by InsiteFX.)

You can no long use .dev it redirects to google.

SEE:

A domain just for developers
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

(This post was last modified: 06-25-2020, 05:13 PM by dave friend.)

(06-25-2020, 08:42 AM)InsiteFX Wrote: You can no long use .dev it redirects to google.

SEE:

A domain just for developers

The whole idea of top-level domain ownership feels evil to me.

********** EDIT ************

I went back to the link @InsiteFX shared and came away with a different understanding.

First, Google doesn't "own" the .dev TLD. It is only registering domain names to the .dev TLD which is a service you can buy from any number of other vendors.

I'm pretty sure that the OP problem is a Chrome browser only thing where a .dev must use https or the browser won't display it. (This is evil too IMO) AFAIK, no other browsers do this. At least they did not when I ran into this issue a few years ago. I had a local development setup that suddenly stopped working. Took me a couple of days of wasted time to figure it out.
Reply
#6

(06-25-2020, 09:07 AM)dave friend Wrote:
(06-25-2020, 08:42 AM)InsiteFX Wrote: You can no long use .dev it redirects to google.

SEE:

A domain just for developers

The whole idea of top-level domain ownership feels evil to me.

i think this is a absurd! they shouldn't have the right to do that, forbid me to use a domain on localhost and charge for it.
i love cli
i love ci
Reply
#7

app/Config/App.php
$forceGlobalSecureRequests = false
Reply




Theme © iAndrew 2016 - Forum software by © MyBB