]> git.mxchange.org Git - mailer.git/commitdiff
Possible fix while a spider/bot has issued a redirect
authorRoland Häder <roland@mxchange.org>
Sun, 20 Jun 2010 21:19:07 +0000 (21:19 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 20 Jun 2010 21:19:07 +0000 (21:19 +0000)
inc/functions.php

index a1577f58a7e5b6caedd1817a0c10ae43e4f6cf49..7fb03af44853657e86a18351143f696e7f511a41 100644 (file)
@@ -987,6 +987,9 @@ function redirectToUrl ($URL, $allowSpider = true) {
 
        // Simple probe for bots/spiders from search engines
        if ((isSpider()) && ($allowSpider === true)) {
+               // Set HTTP-Status
+               setHttpStatus('200 OK');
+
                // Set content-type here to fix a missing array element
                setContentType('text/html');