public static function sendHeaders() { global $REX; // frontend if (!$REX['REDAXO']) { // set noindex header for robots if current article has noindex flag if (seo42::isArticleValid() && seo42::hasNoIndexFlag()) { header('X-Robots-Tag: noindex, noarchive'); } // try fixing redaxo's errorarticle behaviour if (seo42::has404ResponseFlag() && $REX['START_ARTICLE_ID'] == $REX['NOTFOUND_ARTICLE_ID']) { header("HTTP/1.0 404 Not Found"); } } }