summaryrefslogtreecommitdiffstats
path: root/lib/private/Setup.php
diff options
context:
space:
mode:
authorFrank Isemann <frank@isemann.name>2017-03-06 21:55:29 +0100
committerFrank Isemann <frank@isemann.name>2017-03-06 21:55:29 +0100
commit3c1809681264626ee556c4cf4a4f51b77462ff3e (patch)
treec3b1f81251ef6cc2592314d3cb9afb818abfd31e /lib/private/Setup.php
parent15673bc6011f6a8b934e251df4ac9cff6c37c465 (diff)
downloadnextcloud-server-3c1809681264626ee556c4cf4a4f51b77462ff3e.tar.gz
nextcloud-server-3c1809681264626ee556c4cf4a4f51b77462ff3e.zip
Serve robots.txt if the RewriteBase is configured
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r--lib/private/Setup.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 13e6ae2862b..df3f9e66630 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/.*";