.htaccess
sylvain59
-
Bobinours Messages postés 2898 Date d'inscription Statut Membre Dernière intervention -
Bobinours Messages postés 2898 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
je viens de lire votre tuto : http://www.commentcamarche.net/apache/apacht.php3
J'ai un problème avec les répertoires sans index qui affiche tout leurs contenus en ligne.
J'ai créé à la racine de mon hébergement un .htaccess :
DirectoryIndex index.php index.html index.phtml http://www.pepite.fr/erreur.php ErrorDocument 401 http://www.pepite.fr/erreur.php ErrorDocument 403 http://www.pepite.fr/erreur.php ErrorDocument 404 http://www.pepite.fr/erreur.php
Ca marche bien avec une erreur 404 mais pas dans les répertoires sans index. Pour info, je suis hébergé en php chez OVH. Pouvez-vous m'aider. Merci.
Sylvain
je viens de lire votre tuto : http://www.commentcamarche.net/apache/apacht.php3
J'ai un problème avec les répertoires sans index qui affiche tout leurs contenus en ligne.
J'ai créé à la racine de mon hébergement un .htaccess :
DirectoryIndex index.php index.html index.phtml http://www.pepite.fr/erreur.php ErrorDocument 401 http://www.pepite.fr/erreur.php ErrorDocument 403 http://www.pepite.fr/erreur.php ErrorDocument 404 http://www.pepite.fr/erreur.php
Ca marche bien avec une erreur 404 mais pas dans les répertoires sans index. Pour info, je suis hébergé en php chez OVH. Pouvez-vous m'aider. Merci.
Sylvain
A voir également:
- .htaccess
- Problème avec .htaccess - Forum Webmastering
- You don't have permission to access this resource.server unable to read htaccess file, denying access to be safe - Forum Mozilla Firefox
- Question sur le htaccess ✓ - Forum Référencement
- .Htaccess localhost - Forum Référencement
- Restriction avec .htaccess ✓ - Forum Référencement
1 réponse
Pourquoi ton .htacces n'est pas de la fome :
DirectoryIndex index.php index.html index.phtml
ErrorDocument 401 http://www.pepite.fr/erreur.php
ErrorDocument 403 http://www.pepite.fr/erreur.php
ErrorDocument 404 http://www.pepite.fr/erreur.php
-= Bobinours - http://bobin.underlands.org =-
DirectoryIndex index.php index.html index.phtml
ErrorDocument 401 http://www.pepite.fr/erreur.php
ErrorDocument 403 http://www.pepite.fr/erreur.php
ErrorDocument 404 http://www.pepite.fr/erreur.php
-= Bobinours - http://bobin.underlands.org =-