Index: temp/trunk/html/install/index.php
===================================================================
--- temp/trunk/html/install/index.php	(revision 6028)
+++ temp/trunk/html/install/index.php	(revision 6029)
@@ -417,7 +417,8 @@
 	
 	if(defined('SSL_URL')) {
-		$normal_url = SSL_URL;
-	} else {
-		$secure_url = "http://" . $_SERVER['HTTP_HOST'] . "/";
+		$secure_url = SSL_URL;
+	} else {
+		$dir = ereg_replace("install/.*$", "", $_SERVER['REQUEST_URI']);
+		$secure_url = "http://" . $_SERVER['HTTP_HOST'] . $dir;
 	}
 
