forked from Otakatsu/anikatsu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.php
31 lines (29 loc) · 956 Bytes
/
sitemap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
header('Content-type: application/xml');
echo "<?xml version='1.0' encoding='UTF-8'?>"."\n";
echo "<sitemapindex xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>"."\n";
?>
<sitemap>
<loc>https://<?=$_SERVER['SERVER_NAME']?>/sitemaps/sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>https://<?=$_SERVER['SERVER_NAME']?>/sitemaps/ongoing-sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>https://<?=$_SERVER['SERVER_NAME']?>/sitemaps/recentCN-sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>https://<?=$_SERVER['SERVER_NAME']?>/sitemaps/recentDUB-sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>https://<?=$_SERVER['SERVER_NAME']?>/sitemaps/recentSUB-sitemap.xml</loc>
</sitemap>
<?php
$array = range(1, 85);
array_walk($array, function ($value) {
echo "<sitemap>";
echo "<loc>https://{$_SERVER['SERVER_NAME']}/sitemaps/allanime-sitemap.xml?page=".$value."</loc>";
echo "</sitemap>";
});
?>
</sitemapindex>