j'ai un probleme tout simple mais j'connais pô la solution
je viens d'installer une Debian 3.0 + apache.
j'ai mis des fichiers .html dans le documentroot, plus d'autres fichiers
.html dans des sous répertoires de ce document root
j'ai donc
/var/www
mais aussi /var/www/contact, /var/www/infos, etc...
J'ai configuré un domaine qui pointe sur le serveur.
Quand je tape http://www.domaine.com ca marche bien.
Quand je tape http://www.domaine.com/contact/ ca marche bien
Mais quand je tape http://www.domaine.com/contact ca marche pas...
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Philippe Le Van
David wrote:
Bonsoir,
j'ai un probleme tout simple mais j'connais pô la solution
je viens d'installer une Debian 3.0 + apache. j'ai mis des fichiers .html dans le documentroot, plus d'autres fichiers .html dans des sous répertoires de ce document root
j'ai donc /var/www mais aussi /var/www/contact, /var/www/infos, etc...
J'ai configuré un domaine qui pointe sur le serveur.
Quand je tape http://www.domaine.com ca marche bien. Quand je tape http://www.domaine.com/contact/ ca marche bien Mais quand je tape http://www.domaine.com/contact ca marche pas...
Bonjour,
Quand tu ne mets pas le slash à la fin, Apache cherche un fichier et non un répertoire => il est pas content. Par contre, dans certains cas, il s'en sort quand même quand le mod_dir est installé correctement dans httpd.conf
Je t'invite à aller voir les documents suivants : http://httpd.apache.org/docs/mod/mod_dir.html
Puis la section "Trailing Slash Problem" du document suivant : http://httpd.apache.org/docs-2.0/misc/rewriteguide.html
Cordialement, Philippe
David wrote:
Bonsoir,
j'ai un probleme tout simple mais j'connais pô la solution
je viens d'installer une Debian 3.0 + apache.
j'ai mis des fichiers .html dans le documentroot, plus d'autres fichiers
.html dans des sous répertoires de ce document root
j'ai donc
/var/www
mais aussi /var/www/contact, /var/www/infos, etc...
J'ai configuré un domaine qui pointe sur le serveur.
Quand je tape http://www.domaine.com ca marche bien.
Quand je tape http://www.domaine.com/contact/ ca marche bien
Mais quand je tape http://www.domaine.com/contact ca marche pas...
Bonjour,
Quand tu ne mets pas le slash à la fin, Apache cherche un fichier
et non un répertoire => il est pas content.
Par contre, dans certains cas, il s'en sort quand même quand
le mod_dir est installé correctement dans httpd.conf
Je t'invite à aller voir les documents suivants :
http://httpd.apache.org/docs/mod/mod_dir.html
Puis la section "Trailing Slash Problem" du document suivant :
http://httpd.apache.org/docs-2.0/misc/rewriteguide.html
j'ai un probleme tout simple mais j'connais pô la solution
je viens d'installer une Debian 3.0 + apache. j'ai mis des fichiers .html dans le documentroot, plus d'autres fichiers .html dans des sous répertoires de ce document root
j'ai donc /var/www mais aussi /var/www/contact, /var/www/infos, etc...
J'ai configuré un domaine qui pointe sur le serveur.
Quand je tape http://www.domaine.com ca marche bien. Quand je tape http://www.domaine.com/contact/ ca marche bien Mais quand je tape http://www.domaine.com/contact ca marche pas...
Bonjour,
Quand tu ne mets pas le slash à la fin, Apache cherche un fichier et non un répertoire => il est pas content. Par contre, dans certains cas, il s'en sort quand même quand le mod_dir est installé correctement dans httpd.conf
Je t'invite à aller voir les documents suivants : http://httpd.apache.org/docs/mod/mod_dir.html
Puis la section "Trailing Slash Problem" du document suivant : http://httpd.apache.org/docs-2.0/misc/rewriteguide.html