From 053009b156c6f814fb405c8575bb294aab512627 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 15 Oct 2019 05:56:38 +0200 Subject: [PATCH] sitemap.xml: common protocol listing all pages Minimal implementations of sitemap for make benefit glorious engines of search. --- sitemap.xml/index.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sitemap.xml/index.php diff --git a/sitemap.xml/index.php b/sitemap.xml/index.php new file mode 100644 index 0000000..7d28815 --- /dev/null +++ b/sitemap.xml/index.php @@ -0,0 +1,23 @@ +'; +$siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST']; +?> + + +files() as $link) { + $article = new ArchiveArticle($link); + print ''; + print "$siteref/{$article->link}"; + if ($article->last) { + print "{$article->lastiso}"; + } + print "\n"; +} +?> + +