summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-03-11 09:56:38 +0100
committerGitHub <noreply@github.com>2017-03-11 09:56:38 +0100
commit801b600ec348edab2447866b349a0d163db94f15 (patch)
tree1885a7819b28aa069e2922f76b3b2e9b700c09f5
parent456cd81a2081d3dc6a8d7a2acc499483affeb8c1 (diff)
parent3c1809681264626ee556c4cf4a4f51b77462ff3e (diff)
downloadnextcloud-server-801b600ec348edab2447866b349a0d163db94f15.tar.gz
nextcloud-server-801b600ec348edab2447866b349a0d163db94f15.zip
Merge pull request #3739 from fti7/master
Serve robots.txt if the RewriteBase is configured
-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/.*";