Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-01T05:41:35.907Z
Answers.Text: 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?
Answers.UserDisplayName: NickersF
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-01T10:24:51.827Z
Answers.Text: 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.
Answers.UserDisplayName: Tim Knight
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-01T04:18:47.957Z
Answers.LastActivityDate: 2018-06-01T04:48:23.130Z
Answers.LastEditDate: 2018-06-01T04:48:23.130Z
Answers.UserDisplayName: Tim Knight
Body: <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>
  
Tags: <config><installation><hosting>
Title: HappyLager Demo Site Forcing 'https://' on XAMPP
ThreadText: # 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:**
  
  ```
  <VirtualHost *:80>
      DocumentRoot C:/xampp/htdocs/HappyLager/public/
      ServerName happylager.dev
      ServerAlias http://happylager.dev
  </VirtualHost>
  
  ```
  
  **Content of .htaccess files:**
  
  **The `.htaccess` file in the public folder contains:**
  
  ```
  <IfModule mod_rewrite.c>
      # 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]
  </IfModule>
  
  ```
  
  **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.  
  
  ---
  
  