diff --git a/bl-plugins/sitemap/plugin.php b/bl-plugins/sitemap/plugin.php
index 3ea996b2..8119323d 100644
--- a/bl-plugins/sitemap/plugin.php
+++ b/bl-plugins/sitemap/plugin.php
@@ -62,11 +62,13 @@ class pluginSitemap extends Plugin {
try {
// Create the page object from the page key
$page = new Page($pageKey);
- $xml .= '';
- $xml .= ''.$page->permalink().'';
- $xml .= ''.$page->date(SITEMAP_DATE_FORMAT).'';
- $xml .= 'daily';
- $xml .= '';
+ if (!$page->noindex() && !$page->noarchive()) {
+ $xml .= '';
+ $xml .= ''.$page->permalink().'';
+ $xml .= ''.$page->date(SITEMAP_DATE_FORMAT).'';
+ $xml .= 'daily';
+ $xml .= '';
+ }
} catch (Exception $e) {
// Continue
}