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:
@@ -48,4 +48,3 @@ function pingit($vals)
|
||||
|
||||
}
|
||||
|
||||
?>
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user