diff --git a/lib/setup.php b/lib/setup.php
index f64842a9041483cbfa44e4c863a31d15f71c3f0d..5905261f18f17b7461d9f174f0076d9a705a7ebe 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -23,7 +23,7 @@ if(isset($_POST['install']) AND $_POST['install']=='true') {
 		OC_TEMPLATE::printGuestPage("", "installation", $options);
 	}
 	else {
-		header("Location: $SUBURI");
+		header("Location: $WEBROOT$SUBURI");
 		exit();
 	}
 }