1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 23:36:29 +02:00

Google Sitemap: The XML sitemap can now be retrieved from /sitemap.xml

This commit is contained in:
Cameron
2020-05-12 16:41:41 -07:00
parent b25dfa99af
commit d7889bc759
3 changed files with 10 additions and 5 deletions

View File

@@ -48,4 +48,3 @@ function pingit($vals)
}
?>

View File

@@ -34,6 +34,14 @@ class gsitemap_url // plugin-folder + '_url'
);
$config['xml'] = array(
'alias' => 'sitemap',
'regex' => '^sitemap\.xml$', // matched against url, and if true, redirected to 'redirect' below.
'sef' => 'sitemap.xml', // used by e107::url(); to create a url from the db table.
'redirect' => '{e_BASE}gsitemap.php', // file-path of what to load when the regex returns true.
);
return $config;