Htaccess
Révision datée du 27 août 2019 à 16:02 par Geo (discussion | contributions) (→Protection répertoire)
rediriger un sous-dossiers d'un domaine vers un sous domaine
exemple.com/test -> test.exemple.com
RewriteEngine on RewriteCond %{REQUEST_URI} /(.+)/ RewriteRule .* http://%1.exemple.com
Protection répertoire
Créer un htpasswd dans un répertoire "protect"
htpasswd -c .htpasswd geo -> en mode basic htdigest -c .htpasswdprivatphp "PRIVATPHP" geo -> en mode digest