Question: A few days ago, Chrome started redirecting all of my vHosts in Wampserver to https. Everything was working fine until a couple days ago, then one day I logged on to work on my site and Chrome said that the site couldn't be reached, even though I used the same URL i always did in the past. Wamp is running as well as Apache and MySQL and none of those services have any errors in the error log.

I have already tried removing the domain(I use a fake .dev extension for my local sites) with `chrome://net-internals/#hsts` but that didn't do anything. I also tried installing SSL to see if Chrome would detect it as a secure connection... nothing. I even tried reinstalling Wamp completely(even though the vHosts work fine in other browsers) and nothing changed.

The only thing that works in Chrome is accessing the sites via `http://localhost/site`. The redirect to HTTPS happens for all of my Apache vHosts. I've googled and googled and can't find anything that actually fixes the problem.

Answer: 
I have found a quick work-around that worked for my needs and may help someone else.

I use [Browser Sync](https://browsersync.io) when developing and I just set the proxy argument to "testsite.dev" and it will serve up correctly in Chrome.

Here is the command I am using:

```
browser-sync start --proxy "testsite.dev" --port "3000" --files "./**/*.*"

```
**Solution 1 - choose a reserved and future-proof gLTD like .localhost or .test**

Edit your hosts file (for Windows it is C:\Windows\System32\Drivers\etc\hosts)

```
127.0.0.1       testsite.localhost

```

**Solution 2 - install a self-signed certificate for .dev**

1. Create the certificate. Open Powershell as Admnistrator and run:

> 
> P.S. Make sure to install mkcert first
> 
> 
> 

```
C:\Users\John> mkcert *.testsite.dev

```

This will create a wildcard certificate that will work for all .testsite.dev sites

2. Copy these keys from C:\Users\John to C:\xampp\apache\crt\testsite\_dev (create the crt folder if it doesn't exist)
3. Add entries in your C:\Windows\System32\Drivers\etc\hosts file

```
    127.0.0.1       testsite.dev
    127.0.0.1       www.testsite.dev

```

4. Open your C:\xampp\apache\conf\extra\httpd-vhosts.conf and add an entry

```
    <VirtualHost *:443>
       DocumentRoot "C:/xampp/htdocs"
       ServerName testsite.dev
       ServerAlias www.testsite.dev

       Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"

       SSLEngine on
       SSLCertificateFile "crt/testsite_dev/_wildcard.testsite.dev.pem"
       SSLCertificateKeyFile "crt/testsite_dev/_wildcard.testsite.dev-key.pem"
    </VirtualHost>

```

5. Restart Apache
6. (Extra) step - make your OS & browser trust self-signed certificates, otherwise it won't work