From 603858300433b92e6a6669a8fc46a513a07110ef Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Mon, 8 Jan 2018 16:22:52 +0100 Subject: [PATCH] Ignore files from web --- .gitattributes | 3 +++ .htaccess | 8 +------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitattributes b/.gitattributes index 75efa6d8ac..dfdf92e74b 100755 --- a/.gitattributes +++ b/.gitattributes @@ -2,10 +2,13 @@ .gitattributes export-ignore .gitignore export-ignore .codeclimate.yml export-ignore +.flintci.yml export-ignore .scrutinizer.yml export-ignore .styleci.yml export-ignore .travis.yml export-ignore .yamllint_config export-ignore +.php_cs.dist export-ignore +.php_cs export-ignore codesize.xml export-ignore phpcs.xml export-ignore diff --git a/.htaccess b/.htaccess index ec1b9be77e..d0a96a9c1c 100644 --- a/.htaccess +++ b/.htaccess @@ -1,11 +1,5 @@ # Check that your Apache virtualhost have this settings: -# -# AllowOverride All -# Order allow,deny -# Allow from all -# - RewriteEngine on # http://my.chamilo.net/certificates/?id=123 to http://my.chamilo.net/certificates/index.php?id=123 @@ -60,7 +54,7 @@ RewriteRule ^service/(\d{1,})$ plugin/buycourses/src/service_information.php?ser RewriteRule ^([^/.]+)/?$ user.php?$1 [L] # Deny access -RewriteRule ^(tests|.git) - [F,L,NC] +RewriteRule ^(tests|.git|.env|.env.dist|config) - [F,L,NC] # Add caching of woff font files to avoid loading 2*15KB each time with Chamilo # default OpenSans font