Browse Source

gerer robots.txt et favicon.ico s'ils ne sont pas presents a la racine

spip-3-stable
Fil 14 years ago
parent
commit
cecaa4f8bf
  1. 2
      .gitattributes
  2. 7
      htaccess.txt
  3. 2
      squelettes-dist/favicon.ico.html
  4. 14
      squelettes-dist/robots.txt.html

2
.gitattributes vendored

@ -833,6 +833,7 @@ prive/vignettes/xml.png -text
prive/vignettes/zip.png -text
/rien.gif -text
/spip.php -text
squelettes-dist/favicon.ico.html -text
squelettes-dist/feed.png -text
squelettes-dist/formulaires/ecrire_auteur.php -text
squelettes-dist/formulaires/inscription.php -text
@ -862,6 +863,7 @@ squelettes-dist/polices/dustismo_bold.ttf -text
squelettes-dist/puce.gif -text
squelettes-dist/puce_rtl.gif -text
squelettes-dist/rechercher.gif -text
squelettes-dist/robots.txt.html -text
squelettes-dist/rss_forum_article.html -text
squelettes-dist/rss_forum_breve.html -text
squelettes-dist/rss_forum_rubrique.html -text

7
htaccess.txt

@ -96,6 +96,13 @@ RewriteRule ^[^\.]+(\.html)?$ spip.php [QSA,E=url_propre:$0,L]
# bloquer les acces aux repertoires .svn/ (SPIP, plugins, squelettes...)
RewriteRule ^(.*/)?\.svn/ - [F]
###
# Fichiers "standards" (si absents de la racine)
#
RewriteRule ^robots[.]txt$ spip.php?page=robots.txt [QSA,L]
RewriteRule ^favicon[.]ico$ spip.php?page=favicon.ico [QSA,L]
##
# expirer les images (pour contourner gros bug MSIE sur le cache)
# note : a decommenter si vous voulez tester
#<IfModule mod_expires.c>

2
squelettes-dist/favicon.ico.html vendored

@ -0,0 +1,2 @@
#HTTP_HEADER{Content-Type: image/x-icon}
[(#INCLURE{favicon.ico}|sinon{#INCLURE{spip.ico}})]

14
squelettes-dist/robots.txt.html vendored

@ -0,0 +1,14 @@
#HTTP_HEADER{Content-Type: text/plain; charset=#CHARSET}
# robots.txt
# @url: #URL_SITE_SPIP
# @generator: SPIP #SPIP_VERSION
# @template: #SQUELETTE
User-agent: *
Disallow: /local/
Disallow: /ecrire/
Disallow: /plugins/
Disallow: /prive/
Disallow: /squelettes-dist/
Disallow: /squelettes/
Loading…
Cancel
Save