From 3c1809681264626ee556c4cf4a4f51b77462ff3e Mon Sep 17 00:00:00 2001 From: Frank Isemann Date: Mon, 6 Mar 2017 21:55:29 +0100 Subject: [PATCH] Serve robots.txt if the RewriteBase is configured --- lib/private/Setup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/Setup.php b/lib/private/Setup.php index 13e6ae2862..df3f9e6663 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -451,6 +451,7 @@ class Setup { $content .= "\n RewriteCond %{REQUEST_FILENAME} !/status.php"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !/ocs/v1.php"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !/ocs/v2.php"; + $content .= "\n RewriteCond %{REQUEST_FILENAME} !/robots.txt"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !/updater/"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !/ocs-provider/"; $content .= "\n RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*";