Yurik has submitted this change and it was merged.

Change subject: Revert "Instruct robots to stop indexing zero.wikipedia.org and 
its subdomains."
......................................................................


Revert "Instruct robots to stop indexing zero.wikipedia.org and its subdomains."

Per adam's requset

This reverts commit d8641853563caa5029726dd9f521c653361dad3d

Change-Id: I64cddf784f4645265f3c4b5eca5a5a6fbe1a0ed5
---
M w/robots.php
1 file changed, 2 insertions(+), 8 deletions(-)

Approvals:
  Yurik: Verified; Looks good to me, approved



diff --git a/w/robots.php b/w/robots.php
index f0ed293..af697e9 100644
--- a/w/robots.php
+++ b/w/robots.php
@@ -16,20 +16,14 @@
 $robots = fopen( $robotsfile, 'rb' );
 $text = '';
 
-$zeroRated = isset( $_SERVER['HTTP_X_SUBDOMAIN'] ) && 
$_SERVER['HTTP_X_SUBDOMAIN'] === 'ZERO';
-
 header( 'Cache-Control: s-maxage=3600, must-revalidate, max-age=0' );
 
-$dontIndex = "User-agent: *\nDisallow: /\n";
-
-if ( $zeroRated ) {
-       echo $dontIndex;
-} elseif ( $wgArticle->getID() != 0 ) {
+if ( $wgArticle->getID() != 0 ) {
        $text =  $wgArticle->getContent( false ) ;
        $lastmod = gmdate( 'D, j M Y H:i:s', wfTimestamp( TS_UNIX,  
$wgArticle->getTouched() ) ) . ' GMT';
        header( "Last-modified: $lastmod" );
 } elseif( $wmfRealm == 'labs' ) {
-       echo $dontIndex;
+       echo "User-agent: *\nDisallow: /\n";
 } else {
        $stats = fstat( $robots );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/69349
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I64cddf784f4645265f3c4b5eca5a5a6fbe1a0ed5
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Yurik <[email protected]>
Gerrit-Reviewer: Yurik <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to