wiki:web_server:apache2:htaccess
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:web_server:apache2:htaccess [2024/08/22 11:55] – [Interdire l'affichage du contenu des répertoires] hmattaliano | wiki:web_server:apache2:htaccess [2024/08/22 12:10] (current) – hmattaliano | ||
---|---|---|---|
Line 16: | Line 16: | ||
Il s' | Il s' | ||
+ | |||
+ | {{ : | ||
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
Line 59: | Line 61: | ||
" | " | ||
+ | |||
+ | {{ : | ||
< | < | ||
Line 89: | Line 93: | ||
===== Configurer redirection de pages ===== | ===== Configurer redirection de pages ===== | ||
+ | |||
+ | Il est possible de configurer les redirection WEB par exemple la redirection suite à une erreur 404. | ||
+ | |||
+ | < | ||
+ | ErrorDocument 404 /404.html | ||
+ | </ | ||
+ | |||
+ | D' | ||
+ | |||
+ | < | ||
+ | RewriteEngine On | ||
+ | RewriteCond %{HTTP_HOST} ^anciendomaine.com$ [OR] | ||
+ | RewriteCond %{HTTP_HOST} ^www.anciendomaine.com$ | ||
+ | RewriteRule (.*)$ https:// | ||
+ | </ | ||
+ | |||
---- | ---- | ||
===== Outils pour créer un .htaccess ===== | ===== Outils pour créer un .htaccess ===== | ||
+ | |||
+ | Des outils existe pour aider a générer une base d'un fichier .htaccess. | ||
https:// | https:// | ||
+ | |||
+ | https:// | ||
wiki/web_server/apache2/htaccess.1724320513.txt.gz · Last modified: 2024/08/22 11:55 by hmattaliano