[Owncloud] Errors in .htaccess in 4.0.7

Benjamin Schieder blindcoder at scavenger.homeip.net
Tue Aug 21 07:34:10 UTC 2012


Hello all.

Updating from a pre-4 installation I had to apply the following patch 
to .htaccess to make redirection work properly:
--- .htaccess.orig      2012-08-21 09:30:20.000000000 +0200
+++ .htaccess   2012-08-21 09:31:03.000000000 +0200
@@ -11,12 +11,12 @@ php_value memory_limit 512M
  <IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
-RewriteRule ^.well-known/host-meta /public.php?service=host-meta 
[QSA,L]
-RewriteRule ^.well-known/carddav /remote.php/carddav/ [R]
-RewriteRule ^.well-known/caldav /remote.php/caldav/ [R]
-RewriteRule ^apps/calendar/caldav.php remote.php/caldav/ [QSA,L]
-RewriteRule ^apps/contacts/carddav.php remote.php/carddav/ [QSA,L]
-RewriteRule ^apps/([^/]*)/(.*\.(css|php))$ index.php?app=$1&getfile=$2 
[QSA,L]
-RewriteRule ^remote/(.*) remote.php [QSA,L]
+RewriteRule ^/.well-known/host-meta /public.php?service=host-meta 
[QSA,L]
+RewriteRule ^/.well-known/carddav /remote.php/carddav/ [R]
+RewriteRule ^/.well-known/caldav /remote.php/caldav/ [R]
+RewriteRule ^/apps/calendar/caldav.php(.*) /remote.php/caldav/$1 
[QSA,L]
+RewriteRule ^/apps/contacts/carddav.php(.*) /remote.php/carddav/$1 
[QSA,L]
+RewriteRule ^/apps/([^/]*)/(.*\.(css|php))$ 
/index.php?app=$1&getfile=$2 [QSA,L]
+RewriteRule ^/remote/(.*) /remote.php [QSA,L]
  </IfModule>
  Options -Indexes

I guess this also applies to other people as a RewriteRule starting 
with a ^ (begin of line) and then anything but a / never matches 
anything.


Kind regards,
Benjamin



More information about the Owncloud mailing list