diff --git a/install.php b/install.php
index 16dccce..6db4f02 100644
--- a/install.php
+++ b/install.php
@@ -687,12 +687,12 @@ PHP
$_SERVER['SCRIPT_FILENAME'] = dirname(realpath($_SERVER['SCRIPT_FILENAME'])) . '/sapphire/main.php';
chdir('sapphire');
+ $_GET['flush'] = true;
require_once('core/Core.php');
$this->statusMessage("Building database schema...");
// Build database
- $_GET['flush'] = true;
$con = new Controller();
$con->pushCurrent();
@@ -803,6 +803,12 @@ PHP
DirectorySlash Off
+
+Order deny,allow
+Deny from all
+Allow from 127.0.0.1
+
+
RewriteEngine On
$baseClause
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
@@ -841,6 +847,12 @@ TEXT
DirectorySlash Off
+
+Order deny,allow
+Deny from all
+Allow from 127.0.0.1
+
+
RewriteEngine On
$baseClause
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$