diff --git a/CHANGES.md b/CHANGES.md index ad820a2e..c14513c2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,8 @@ - Page sitemap et sitemap.xml : les articles de blog avec le statut brouillon sont masqués. - Réseau social : Github. - Sitemap : ajout de la date de publication des articles. +- Correction : + - Suppression du ? dans les URLs des fichiers sitemap de robots.txt ## Version 9.1.09 - Améliorations : diff --git a/core/core.php b/core/core.php index 533174f2..c486b265 100644 --- a/core/core.php +++ b/core/core.php @@ -609,8 +609,8 @@ class common { 'Disallow: /site/tmp' .PHP_EOL . 'Disallow: /site/backup' .PHP_EOL . 'Allow: /site/file/' .PHP_EOL . - 'Sitemap: ' . helper::baseUrl() . 'sitemap.xml' . PHP_EOL . - 'Sitemap: ' . helper::baseUrl() . 'sitemap.xml.gz' . PHP_EOL . + 'Sitemap: ' . helper::baseUrl(false) . 'sitemap.xml' . PHP_EOL . + 'Sitemap: ' . helper::baseUrl(false) . 'sitemap.xml.gz' . PHP_EOL . '# ZWII CONFIG ---------' . PHP_EOL ; diff --git a/core/module/config/config.php b/core/module/config/config.php index acefb6a7..39e8ee81 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -184,8 +184,8 @@ class config extends common { if (strpos($data,'sitemap.xml') == 0) { fwrite($filenew, $data); } else { - fwrite($filenew, 'Sitemap: ' . helper::baseUrl() . 'sitemap.xml' . PHP_EOL); - fwrite($filenew, 'Sitemap: ' . helper::baseUrl() . 'sitemap.xml.gz' . PHP_EOL); + fwrite($filenew, 'Sitemap: ' . helper::baseUrl(false) . 'sitemap.xml' . PHP_EOL); + fwrite($filenew, 'Sitemap: ' . helper::baseUrl(false) . 'sitemap.xml.gz' . PHP_EOL); fwrite($filenew, '# ZWII CONFIG ---------' . PHP_EOL); break; } diff --git a/robots.txt b/robots.txt new file mode 100644 index 00000000..7a21c7cf --- /dev/null +++ b/robots.txt @@ -0,0 +1,12 @@ + +# ZWII CONFIG --------- +User-agent: * +Disallow: /core/ +Disallow: /module/ +Disallow: /site/data +Disallow: /site/tmp +Disallow: /site/backup +Allow: /site/file/ +Sitemap: http://localhost/ZwiiCMS/sitemap.xml +Sitemap: http://localhost/ZwiiCMS/sitemap.xml.gz +# ZWII CONFIG ---------