<p>The issue here is actually the use of the TLD .dev. Google now owns that extension and in Chrome (which later, other browsers including Safari and Firefox enforced) it now forces the URL to go over SSL. If you don’t want to deal with all that self-signed certificate stuff to get SSL working locally, your best bet is to just switch the extension to something like .test and it should work just fine. </p>

CC BY-SA 4.0
2018-06-01T05:41:35.907Z
Thanks for the information. I was being too cautious. I assumed that .dev was required by Craft. I made a pull request with an edit to the README.me. Should I delete this question?
NickersF
CC BY-SA 4.0
2018-06-01T10:24:51.827Z
Not at all. I think this is an issue people still come across and having this question and answer documented is valuable. If that did work for you be sure to mark it as the accepted answer.
Tim Knight
CC BY-SA 4.0
2018-06-01T04:18:47.957Z
2018-06-01T04:48:23.130Z
2018-06-01T04:48:23.130Z
Tim Knight
<p><strong>When I try to load the demo site in my browser I get the following error:</strong></p>

<p><a href="https://i.sstatic.net/ZU6Xm.jpg" rel="nofollow noreferrer">https://i.sstatic.net/ZU6Xm.jpg</a> "Your connection is not secure"</p>

<p><strong>I have added the following to my hosts file:</strong></p>

<p><code>127.0.0.7        happylager.dev</code></p>

<p><strong>and this to my <code>httpd-vhosts.conf</code> file:</strong></p>

<pre><code>&lt;VirtualHost *:80&gt;
    DocumentRoot C:/xampp/htdocs/HappyLager/public/
    ServerName happylager.dev
    ServerAlias http://happylager.dev
&lt;/VirtualHost&gt;
</code></pre>

<p><strong>Content of .htaccess files:</strong></p>

<p><strong>The <code>.htaccess</code> file in the public folder contains:</strong></p>

<pre><code>&lt;IfModule mod_rewrite.c&gt;
    # Send would-be 404 requests to Craft
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
    RewriteRule (.+) index.php?p=$1 [QSA,L]
&lt;/IfModule&gt;
</code></pre>

<p><strong>The <code>.htaccess</code> file in the craft folder contains:</strong></p>

<p><code>deny from all</code></p>

<p><strong>XAMPP versioning information:</strong></p>

<ul>
<li>PHP Version 7.04</li>
<li>phpMyAdmin version 4.5.1</li>
</ul>

<p>This error occured during step 7 and 8 on this page:</p>

<p><a href="https://github.com/pixelandtonic/HappyLager" rel="nofollow noreferrer">https://github.com/pixelandtonic/HappyLager</a></p>

<p>Rebooted as well just in case. When I try to resolve 'happylager.dev' or '<a href="http://happylager.dev" rel="nofollow noreferrer">http://happylager.dev</a>' the error still persists. The virtual hosts resolve other names without error. Any idea what I might not be considering? Any help will be greatly appreciated.</p>

<config><installation><hosting>
HappyLager Demo Site Forcing 'https://' on XAMPP
# HappyLager Demo Site Forcing 'https://' on XAMPP

(Asked by: username_0 on 2018-06-01)

When I try to load the demo site in my browser I get the following error:
https://i.sstatic.net/ZU6Xm.jpg "Your connection is not secure"
I have added the following to my hosts file:
127.0.0.7        happylager.dev
and this to my httpd-vhosts.conf file:

    DocumentRoot C:/xampp/htdocs/HappyLager/public/
    ServerName happylager.dev
    ServerAlias http://happylager.dev


Content of .htaccess files:
The .htaccess file in the public folder contains:

    # Send would-be 404 requests to Craft
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
    RewriteRule (.+) index.php?p=$1 [QSA,L]


The .htaccess file in the craft folder contains:
deny from all
XAMPP versioning information:

PHP Version 7.04
phpMyAdmin version 4.5.1

This error occured during step 7 and 8 on this page:
https://github.com/pixelandtonic/HappyLager
Rebooted as well just in case. When I try to resolve 'happylager.dev' or 'http://happylager.dev' the error still persists. The virtual hosts resolve other names without error. Any idea what I might not be considering? Any help will be greatly appreciated.

**Tags:** config, installation, hosting

---

## 1 answers

### Answer by username_1 on 2018-06-01. Score: 3 | Accepted answer

The issue here is actually the use of the TLD .dev. Google now owns that extension and in Chrome (which later, other browsers including Safari and Firefox enforced) it now forces the URL to go over SSL. If you don’t want to deal with all that self-signed certificate stuff to get SSL working locally, your best bet is to just switch the extension to something like .test and it should work just fine.

> **Comments:**
> **username_0**: Thanks for the information. I was being too cautious. I assumed that .dev was required by Craft. I made a pull request with an edit to the README.me. Should I delete this question?  
> **username_1**: Not at all. I think this is an issue people still come across and having this question and answer documented is valuable. If that did work for you be sure to mark it as the accepted answer.  

---

