From aa65cef241364872536ca0fda34d16fd87e0a8fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrice=20PENHO=C3=8BT?= Date: Fri, 12 Nov 2021 12:14:39 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20fichiers=20pour=20forcer=20https=20et?= =?UTF-8?q?=20interdire=20indexation=20r=C3=A9pertoire=20datas=20du=20site?= =?UTF-8?q?=20d=C3=A9mo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/.htaccess | 3 +++ public/robots.txt | 2 ++ 2 files changed, 5 insertions(+) create mode 100755 public/.htaccess create mode 100755 public/robots.txt diff --git a/public/.htaccess b/public/.htaccess new file mode 100755 index 0000000..66d034c --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,3 @@ +RewriteEngine on +RewriteCond %{SERVER_PORT} 80 +RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] \ No newline at end of file diff --git a/public/robots.txt b/public/robots.txt new file mode 100755 index 0000000..bacb06f --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /datas/