forked from warlordsnet/animezia.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sitemap.php
40 lines (38 loc) · 1.15 KB
/
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
32
33
34
35
36
37
38
39
40
<?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>
<sitemap>
<loc>https://tech.animezia.com/post-sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>https://animezia.com/sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>https://snaply.in/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>