Skip to content

Commit

Permalink
Fixed Sitemap Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaiahJTurner committed Jun 19, 2014
1 parent 8e6e887 commit 9483d1b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</sitemapindex><?php
// If this is the first page of the sitemap, send all the landing pages.
} else if (intval($_GET['p']) == 0) { ?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.90">
<urlset xmlns="http://www.google.com/schemas/sitemap/0.9">

<?php
$priority = 1;
Expand All @@ -62,19 +62,18 @@
} ?>
</urlset>
<?php } else if (intval($_GET['p']) >= $numSiteMaps){ ?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.90">
<urlset xmlns="http://www.google.com/schemas/sitemap/0.9">
<?php
$posts = $whack->sitemapPage(intval($_GET['p']));
foreach ($posts as $post => $modified) {
echo("<sitemap>");
echo("<url>");
echo("<loc>");
echo(SERVER_PROTOCOL."://".SERVER_HOSTNAME."/hw/".$post);
echo("</loc>");
echo("<lastmod>");
echo(date('c', $modified));
echo("</lastmod>");
echo("</sitemap>");
echo("Post");
echo("</url>");
}
?>
</urlset>
Expand Down

0 comments on commit 9483d1b

Please sign in to comment.