Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 88bc398018 | |||
| e23a9094ef | |||
| 0128705827 |
16
Readme.md
16
Readme.md
@@ -2,6 +2,20 @@
|
|||||||
|
|
||||||
- Créer le répertoire /var/www/html/Dev
|
- Créer le répertoire /var/www/html/Dev
|
||||||
- Créer une page index.html dans ce répertoire
|
- 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
|
- 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
|
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
|
||||||
|
<Directory /var/www/html/Dev>
|
||||||
|
AllowOverride Fileinfo
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
#cat /var/www/html/Dev/.htaccess
|
||||||
|
RedirectMatch temp /(.*) /travaux.html
|
||||||
|
```
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<h1 style="font-size: big ; color: red ; text-align: center">Work in progress</h1>
|
<h1 style="font-size: big ; color: red ; text-align: center">Work in progress</h1>
|
||||||
|
|
||||||
<div style="text-align: center">
|
<div style="text-align: center">
|
||||||
<img src="travaux.gif" alt="gif work"/>
|
<img src="/travaux.gif" alt="gif work"/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user