ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
rootindex.php
Go to the documentation of this file.
1<?php
2// BEGIN WebDAV
3// This page is required to support Microsoft WebDAV clients with ILIAS.
4
5// Note: Put this page at the root of the website and rename it to index.php.
6
7// We MUST block WebDAV requests on the root page of the Web-Server
8// in order to make the "Microsoft WebDAV MiniRedir" client work with ILIAS.
9// If we don't do this, the client will display a non-working login-dialog.
10
11if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND'
12|| $_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
13 // Block WebDAV Requests from "Microsoft WebDAV MiniRedir" client.
14 $status = '404 Not Found';
15 header("HTTP/1.1 $status");
16 header("X-WebDAV-Status: $status", true);
17 exit;
18} else {
19 // Redirect browser to the ILIAS Start page
20 header("Location: /ilias/index.php");
22}
23// END WebDAV
An exception for terminatinating execution or to throw for unit testing.
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
exit
Definition: rootindex.php:21