Remove non-canonical path elements from sitemap

dev
gravel 7 months ago
parent 324046083e
commit f8e1410ac4
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -7,7 +7,7 @@
$root = $changes_under_root ?? $TEMPLATES_ROOT;
$ext = ($root == $TEMPLATES_ROOT) ? "php" : "html";
?>
<loc><?=$SITE_CANONICAL_URL . $rel_loc?>/index.html</loc>
<loc><?=$SITE_CANONICAL_URL . $rel_loc?></loc>
<lastmod><?=date('c', filemtime("$root$rel_loc/index.$ext"))?></lastmod>
<?php
}

Loading…
Cancel
Save