From 012870582745479eec2ff745f6c3b4b571a5814f Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Tue, 5 Jul 2022 10:59:06 +0200 Subject: [PATCH] solution --- Readme.md | 16 +++++++++++++++- travaux.html | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 42e0f42..7e356a9 100644 --- a/Readme.md +++ b/Readme.md @@ -2,6 +2,20 @@ - Créer le répertoire /var/www/html/Dev - Créer une page index.html dans ce répertoire +```bash +mkdir /var/www/html/Dev +echo "i am working" > /var/www/html/Dev/index.html +``` - Copier dans /var/www/html les fichiers travaux.gif et travaux.html -Objectif: en utilisant un htaccess rediriger (temporairement) toutes les requètes arrivant sur /dev vers travaux.html \ No newline at end of file +Objectif: en utilisant un htaccess rediriger (temporairement) toutes les requètes arrivant sur /dev vers travaux.html + +```bash +#cat /etc/httpd/conf.d/my.conf + + AllowOverride Fileinfo + + +#cat /var/www/html/Dev/.htaccess +RedirectMatch temp /(.*) /travaux.html +``` \ No newline at end of file diff --git a/travaux.html b/travaux.html index 0c2011a..f069db1 100644 --- a/travaux.html +++ b/travaux.html @@ -1,5 +1,5 @@

Work in progress

- gif work + gif work