Hi,<br><br>I'm not used to PHP but tried to get an easy fix for the problem, that unconfigured OwnCloud is endlessly redirecting when installed on IIS.<br>Problem is in /lib/base.php on line 202 (in v4.0.0):<br><br>if (!OC_Config::getValue('installed', false) && OC::$SUBURI != '/index.php') {<br>
<br>On an Microsoft OS, $SUBURI will never be /index.php. It will be \index.php. Backslash instead of slash.<br><br>I thought about another way to define $SUBURI and tried some possibilites. But somehow I think, the following is the easiest way to solve it.<br>
I changed<br>OC::$SUBURI=substr(realpath($_SERVER["SCRIPT_FILENAME"]),strlen(OC::$SERVERROOT));<br>to<br>OC::$SUBURI=substr(realpath($_SERVER["SCRIPT_FILENAME"]),strlen(OC::$SERVERROOT)+1);<br>to eleminate the slash.<br>
<br>And then changed<br>if (!OC_Config::getValue('installed', false) && OC::$SUBURI != '/index.php') {<br>to<br>if (!OC_Config::getValue('installed', false) && OC::$SUBURI != 'index.php') {<br>
<br>What do you think of this?<br><br>Stefan<br>