diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-03-11 09:56:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-11 09:56:38 +0100 |
commit | 801b600ec348edab2447866b349a0d163db94f15 (patch) | |
tree | 1885a7819b28aa069e2922f76b3b2e9b700c09f5 | |
parent | 456cd81a2081d3dc6a8d7a2acc499483affeb8c1 (diff) | |
parent | 3c1809681264626ee556c4cf4a4f51b77462ff3e (diff) | |
download | nextcloud-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.php | 1 |
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/.*"; |