Skip to content

Commit

Permalink
Merge pull request #34949 from benrubson/robots
Browse files Browse the repository at this point in the history
[stable10] Directly honour robots.txt if htaccess.RewriteBase
  • Loading branch information
Vincent Petry authored Apr 2, 2019
2 parents de6ab95 + 9a07ea0 commit 245096b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ public static function updateHtaccess() {
$content .= "\n RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !\\.(css|js|svg|gif|png|html|ttf|woff|ico|jpg|jpeg|json)$";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !core/img/favicon.ico$";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/robots.txt";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/remote.php";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/public.php";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/cron.php";
Expand Down

0 comments on commit 245096b

Please sign in to comment.