Redirections : Redirections de pages
https://gtmetrix.com/add-expires-headers.html
http://www.seomix.fr/guide-htaccess-performances-et-temps-de-chargement/
Déposer ce fichier sur le serveur et récupérer ce qu'il écrit
<?php echo realpath('./');
Générer un fichier .htpasswd : http://www.htaccesstools.com/htpasswd-generator/
Ajouter le code au .htaccess
# Protection .htpasswd AuthName "Site protégé" AuthType Basic AuthUserFile "/home/www/clients/client1/web23/web/.htpasswd" Require valid-user
The following example shows how to use the Satisfy directive to disable access controls in a subdirectory of a protected directory. This technique should be used with caution, because it will also disable any access controls imposed by mod_authz_host.
<Directory /path/to/protected/> Require user david </Directory> <Directory /path/to/protected/unprotected> # All access controls and authentication are disabled # in this directory Satisfy Any Allow from all </Directory>
#Bloquer l'indexation des fichiers Word et PDF <Files ~ "\.(doc|docx|pdf)$"> Header set X-Robots-Tag "noindex, nofollow" </Files>