diff options
author | Frank Isemann <frank@isemann.name> | 2017-03-06 21:55:29 +0100 |
---|---|---|
committer | Frank Isemann <frank@isemann.name> | 2017-03-06 21:55:29 +0100 |
commit | 3c1809681264626ee556c4cf4a4f51b77462ff3e (patch) | |
tree | c3b1f81251ef6cc2592314d3cb9afb818abfd31e /lib/private/Setup.php | |
parent | 15673bc6011f6a8b934e251df4ac9cff6c37c465 (diff) | |
download | nextcloud-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.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/.*"; |