[9.1.10] Bug robots.txt
This commit is contained in:
parent
9a66fe707d
commit
308992e8ce
@ -5,6 +5,8 @@
|
|||||||
- Page sitemap et sitemap.xml : les articles de blog avec le statut brouillon sont masqués.
|
- Page sitemap et sitemap.xml : les articles de blog avec le statut brouillon sont masqués.
|
||||||
- Réseau social : Github.
|
- Réseau social : Github.
|
||||||
- Sitemap : ajout de la date de publication des articles.
|
- 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
|
## Version 9.1.09
|
||||||
- Améliorations :
|
- Améliorations :
|
||||||
|
@ -609,8 +609,8 @@ class common {
|
|||||||
'Disallow: /site/tmp' .PHP_EOL .
|
'Disallow: /site/tmp' .PHP_EOL .
|
||||||
'Disallow: /site/backup' .PHP_EOL .
|
'Disallow: /site/backup' .PHP_EOL .
|
||||||
'Allow: /site/file/' .PHP_EOL .
|
'Allow: /site/file/' .PHP_EOL .
|
||||||
'Sitemap: ' . helper::baseUrl() . 'sitemap.xml' . PHP_EOL .
|
'Sitemap: ' . helper::baseUrl(false) . 'sitemap.xml' . PHP_EOL .
|
||||||
'Sitemap: ' . helper::baseUrl() . 'sitemap.xml.gz' . PHP_EOL .
|
'Sitemap: ' . helper::baseUrl(false) . 'sitemap.xml.gz' . PHP_EOL .
|
||||||
'# ZWII CONFIG ---------' . PHP_EOL ;
|
'# ZWII CONFIG ---------' . PHP_EOL ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -184,8 +184,8 @@ class config extends common {
|
|||||||
if (strpos($data,'sitemap.xml') == 0) {
|
if (strpos($data,'sitemap.xml') == 0) {
|
||||||
fwrite($filenew, $data);
|
fwrite($filenew, $data);
|
||||||
} else {
|
} else {
|
||||||
fwrite($filenew, 'Sitemap: ' . helper::baseUrl() . 'sitemap.xml' . PHP_EOL);
|
fwrite($filenew, 'Sitemap: ' . helper::baseUrl(false) . 'sitemap.xml' . PHP_EOL);
|
||||||
fwrite($filenew, 'Sitemap: ' . helper::baseUrl() . 'sitemap.xml.gz' . PHP_EOL);
|
fwrite($filenew, 'Sitemap: ' . helper::baseUrl(false) . 'sitemap.xml.gz' . PHP_EOL);
|
||||||
fwrite($filenew, '# ZWII CONFIG ---------' . PHP_EOL);
|
fwrite($filenew, '# ZWII CONFIG ---------' . PHP_EOL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
12
robots.txt
Normal file
12
robots.txt
Normal file
@ -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 ---------
|
Loading…
x
Reference in New Issue
Block a user