Projet

Général

Profil

Révision 5587145e

Ajouté par Assos Assos il y a presque 7 ans

Update to 7.56

Voir les différences:

drupal7/.htaccess
3 3
#
4 4

  
5 5
# Protect files and directories from prying eyes.
6
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\..*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock))$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$">
7
  Order allow,deny
6
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock))$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$">
7
  <IfModule mod_authz_core.c>
8
    Require all denied
9
  </IfModule>
10
  <IfModule !mod_authz_core.c>
11
    Order allow,deny
12
  </IfModule>
8 13
</FilesMatch>
9 14

  
10 15
# Don't show directory listings for URLs which map to a directory.
......
80 85
  # If you do not have mod_rewrite installed, you should remove these
81 86
  # directories from your webroot or otherwise protect them from being
82 87
  # downloaded.
83
  RewriteRule "(^|/)\." - [F]
88
  RewriteRule "/\.|^\.(?!well-known/)" - [F]
84 89

  
85 90
  # If your site can be accessed both with and without the 'www.' prefix, you
86 91
  # can use one of the following settings to redirect users to your preferred

Formats disponibles : Unified diff