1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 15:31:41 +02:00

Closes #5454 - sitemapindex support.

This commit is contained in:
camer0n
2025-03-28 15:47:07 -07:00
parent 80ecb2b289
commit 4d4aaf30b4
2 changed files with 68 additions and 0 deletions

View File

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