fichier robots.txt absent des ressources suppriemr la copie

This commit is contained in:
Fred Tempez 2021-10-30 18:42:00 +02:00
parent ebbe211b92
commit 21887439e4

View File

@ -945,13 +945,11 @@ class common {
// Move flushed files to their final location. Compress if the option is enabled.
$sitemap->finalize();
// Update robots.txt file in output directory or create a new one
// Update robots.txt file in output directory
if ($this->getData(['config','seo', 'robots']) === true) {
unlink('robots.txt');
$sitemap->updateRobots();
} else {
copy('core/module/install/ressource/robots.txt', 'robots.txt');
}
// Submit your sitemaps to Google, Yahoo, Bing and Ask.com