permanent redirect requests to filemanager/webdav.php to webdav.php

This commit is contained in:
Ralf Becker 2019-10-22 15:29:23 +02:00
parent ec463058e2
commit 612fdd71cb

View File

@ -1,6 +1,6 @@
<?php
/**
* eGroupWare - WebDAV access
* EGroupware - old WebDAV access
*
* Just for backward compatibility of the url: better use the webdav.php in the root.
*
@ -8,8 +8,10 @@
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package filemanager
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @copyright (c) 2008 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @version $Id$
* @copyright (c) 2008-19 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
*/
include('../webdav.php');
// we permanent redirect to the correct URL instead of processing the request under the old url
// (processing under misses certain special handling like not access_logging the request)
http_response_code(301);
header('Location: '.str_replace('/filemanager/webdav.php/', '/webdav.php/', $_SERVER['REQUEST_URI']));