Friday 27 January 2006 2:47:24 am
The RewriteRule is completely right as the installation operates in CGI-mode where pages are accessed like this: www.somedomain.net/index.php?/content/view/full/2
The fact that I wasn't aware that the installation was running in CGI-Mode was my whole problem. So I think our problems aren't that related :-)
I did a few tweaks and now it runs smoothly.
I can even authenticate via http-auth in webdav using the following solution: Added the following to the WebDAV-RewriteRule:
RewriteRule (.*) /webdav.php/$1?CGI_AUTH_DATA=%{HTTP:Authorization}
Added the following at the top of webdav.php
if((empty($_SERVER['PHP_AUTH_USER']) or empty($_SERVER['PHP_AUTH_PW'])) and isset($_REQUEST['CGI_AUTH_DATA']) and preg_match('/Basic\s+(.*)$/i', $_REQUEST['CGI_AUTH_DATA'], $matc))
list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':', base64_decode($matc[1]));
Voilá, WebDAV in CGI-Mode works!
sp@php.net
|