From acc4a80c6c58e6e2ff1766d561d35ee80b9c81f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Fri, 3 Jul 2015 17:56:27 +0200 Subject: [PATCH] Localhostshit --- .htaccess | 4 ++-- server/server.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.htaccess b/.htaccess index 9a9ef505..eb6f34c0 100755 --- a/.htaccess +++ b/.htaccess @@ -5,8 +5,8 @@ RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] #Comment out the two folling lines when running server locally to fix issues with localhost -#RewriteCond %{HTTPS} !=on -#RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] +RewriteCond %{HTTPS} !=on +RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] RewriteRule (?i)^remote/(.*) php/controller.php?id=$1 [L] diff --git a/server/server.js b/server/server.js index 52aaee40..aedf2ec5 100755 --- a/server/server.js +++ b/server/server.js @@ -4,7 +4,7 @@ var server; This if for the localhost running ******/ -localhost = true; +localhost = false; //https server if(localhost)