Problème avec .htaccess (headername et readmename)
SpyneNetwa
Messages postés
2
Date d'inscription
Statut
Membre
Dernière intervention
-
SpyneNetwa Messages postés 2 Date d'inscription Statut Membre Dernière intervention -
SpyneNetwa Messages postés 2 Date d'inscription Statut Membre Dernière intervention -
Bonjour à tous !
Cela fait quelque jours que je planche sur le même problème,sans trouver de solutions,c'est pourquoi j'espère trouver de l'aide ici.
Mon problème est le suivant:
Il y'a peur j'ai ouvert un nouveau compte ftp pour stocker toutes sortes de docs.
J'aimerais faire ce qu'on appelle un repository,c'est à dire personnaliser apache pour que le listing des fichiers soit "propre".
J'ai donc crée un .htaccess dont le code est le suivant :
[code]
HeaderName http://themaze.hebergratuit.com/head.htm
ReadmeName /foot.html
IndexIgnore .htaccess Thumbs.db db _notes
IndexOptions SuppressHTMLPreamble FancyIndexing FoldersFirst IgnoreCase
IndexOrderDefault Ascending Description
AddIcon (IMG,http://themaze.hebergratuit.com/icons/image.gif) .svg .SVG .wmf .WMF
AddIcon (IMG,http://themaze.hebergratuit.com/icons/gif.gif) .gif .GIF
AddIcon (IMG,http://themaze.hebergratuit.com/icons/jpg.gif) .jpg .JPG .jpeg .JPEG
AddIcon (IMG,http://themaze.hebergratuit.com/icons/png.gif) .png .PNG
AddIcon (IMG,http://themaze.hebergratuit.com/icons/psd.gif) .psd .PSD
AddIcon (IMG,http://themaze.hebergratuit.com/icons/ico.gif) .ico .ICO
AddIcon (IMG,http://themaze.hebergratuit.com/icons/tif.png) .tif .TIF .tiff .TIFF
AddDescription "Image PNG" *.png *.PNG
AddDescription "Image JPG" *.jpg *.JPG
AddDescription "Image BMP" *.bmp *.BMP
AddDescription "Image SVG" *.svg *.SVG
AddDescription "Image GIF" *.gif *.GIF
AddDescription "Image WMF" *.wmf *.WMF
AddDescription "Image PSD" *.psd *.PSD
AddDescription "Image ICO" *.ico *.ICO
AddIcon (VIDEO,http://themaze.hebergratuit.com/icons/wmp.png) .mov .MOV .avi .AVI .mpg .MPG .wmv .WMV
AddDescription "Video QuickTime" *.mov *.MOV
AddDescription "Video AVI" *.avi *.AVI
AddDescription "Video MPEG" *.mpg *.MPG
AddDescription "Video WMV" *.wmv *.WMV
AddIcon (AUDIO,http://themaze.hebergratuit.com/icons/wmp.png) .wma .mp3 .mp4 .midi .mid .WMA .MP3 .MP4 .MIDI .MID
AddDescription "Audio MP3" *.mp3 *.MP3
AddDescription "Audio MP4" *.mp4 *.MP4
AddDescription "Audio WMA" *.wma *.WMA
AddDescription "Audio MIDI" *.mid *.midi
AddIcon (FLA,http://themaze.hebergratuit.com/icons/fla.gif) .fla
AddIcon (AS,http://themaze.hebergratuit.com/icons/as.gif) .as
AddIcon (FLV,http://themaze.hebergratuit.com/icons/flv.gif) .flv
AddDescription "Fichier Flash Video" *.flv
AddDescription "Projet Flash" *.fla
AddDescription "Fichier ActionScript" *.as
AddIcon (SWF,http://themaze.hebergratuit.com/icons/swf.png) .swf
AddDescription "Animation Flash" *.swf
AddIcon (TXT,http://themaze.hebergratuit.com/icons/txt.png) .txt
AddDescription "Fichier de texte brut" *.txt
AddIcon (DOC,http://themaze.hebergratuit.com/icons/word.png) .doc .rtf .docx
AddDescription "Document Word" *.doc *.rtf *.docx
AddIcon (DOC,http://themaze.hebergratuit.com/icons/powerpoint.png) .ppt .pptx
AddDescription "Présentation PowerPoint" *.ppt *.pptx
AddIcon (DOC,http://themaze.hebergratuit.com/icons/excel.png) .xls .xlss
AddDescription "Feuille de calcul Excel" *.xls *.xlsx
AddIcon (PHP,http://themaze.hebergratuit.com/icons/php.gif) .php .phtml
AddDescription "Page Web PHP" *.php
AddDescription "Page Web PHP" *.phtml
AddIcon (HTM,http://themaze.hebergratuit.com/icons/web.gif) .htm .html .HTM .HTML .xhtml .XHTML
AddDescription "Page Web HTML" *.htm *.HTM
AddDescription "Fichier HTML Compilé" *.chm
AddIcon (HTC,/ftp/icons/chm.gif) .chm
AddIcon (HTC,http://themaze.hebergratuit.com/icons/ini.png) .htc
AddDescription "Comportement IExplorer" *.htc
AddIcon (CSS,http://themaze.hebergratuit.com/icons/css.png) .css
AddDescription "Feuille de style CSS" *.css
AddIcon (CSS,http://themaze.hebergratuit.com/icons/js.png) .js
AddDescription "Fichier Javascript" *.js
AddIcon (CSS,http://themaze.hebergratuit.com/icons/xml.png) .xml
AddDescription "Fichier XML" *.xml
AddIcon (EXE,http://themaze.hebergratuit.com/icons/exe.png) .exe .EXE
AddDescription "Exécutable" *.exe *.EXE
AddIcon (PDF,http://themaze.hebergratuit.com/icons/pdf.png) .pdf .PDF
AddDescription "Document Adobe PDF" *.pdf *.PDF
AddIcon (ARCHIVE,http://themaze.hebergratuit.com/icons/archive.gif) .jar .zip .rar .arj .arc .tar .targz .gz
AddDescription "Archive ZIP" *.zip *.ZIP
AddDescription "Archive RAR" *.rar *.RAR
AddDescription "Archive ARJ" *.arj *.ARJ
AddDescription "Archive ARC" *.arc *.ARC
AddDescription "Archive TAR" *.tar *.TAR
AddDescription "Archive JAR" *.jar *.JAR
AddDescription "Archive GZ" *.gz *.GZ
AddDescription "Archive TARGZ" *.targz *.TARGZ
AddIcon (C,http://themaze.hebergratuit.com/icons/c.gif) .c
AddDescription "Fichier C" *.c
AddIcon (H,http://themaze.hebergratuit.com/icons/h.gif) .h
AddDescription "Fichier d'ent-tête" *.h
AddIcon (VCPROJ,http://themaze.hebergratuit.com/icons/vcproj.gif) .vcproj
AddDescription "Projet Visual C++" *.vcproj
AddIcon (PAR,http://themaze.hebergratuit.com/dir_par.png) ..
AddIcon (DIR,http://themaze.hebergratuit.com/dir.png) ^^DIRECTORY^^
AddDescription "Dossier parent" ..
AddDescription "Répertoire" */
DefaultIcon http://themaze.hebergratuit.com/icons/txt.png
[code]
Vous pouvez constater le résultat ici :
http://themaze.hebergratuit.com/
Comme vous pouvez le constater,le .htaccess marche bel et bien : le fichier est bien masqué dans le listing,et nous avons nottament les icônes concernant aux types de fichiers.
Cependant celà ne charge pas les deux fichiers en tant que header et foot,le problème vient donc de là :
HeaderName http://themaze.hebergratuit.com/head.htm
ReadmeName /foot.html
Certes ce n'est pas les même liens,ceci pour montrer que j'ai éssayer divers lien et que rien ne change,que ce soit le lien direct en http comme ici (alors qu'ils marchent pour les icônes par exemple).
J'ai aussi éssayé avec le home directory indiqué par mon hébergeur soit:
/home/vol14/hebergratuit.com/nom_user/
mais aussi : /home/vol14/hebergratuit.com/nom_user/htdocs/ puisque c'est le nom du repertoire ou je peux uploader ..(en fte quand je me connecte par ftp dans le premier repertoire j'ai un fichier (do not upload here) et un fichier htdocs de créer donc j'upload dedans ...
Et voilà,impossible de se servir de ses 2 fonctions qui me sont vitale pour ce projet.
En espérant que quelqu'un puisse m'aider !!
Merci D'avance !
Cela fait quelque jours que je planche sur le même problème,sans trouver de solutions,c'est pourquoi j'espère trouver de l'aide ici.
Mon problème est le suivant:
Il y'a peur j'ai ouvert un nouveau compte ftp pour stocker toutes sortes de docs.
J'aimerais faire ce qu'on appelle un repository,c'est à dire personnaliser apache pour que le listing des fichiers soit "propre".
J'ai donc crée un .htaccess dont le code est le suivant :
[code]
HeaderName http://themaze.hebergratuit.com/head.htm
ReadmeName /foot.html
IndexIgnore .htaccess Thumbs.db db _notes
IndexOptions SuppressHTMLPreamble FancyIndexing FoldersFirst IgnoreCase
IndexOrderDefault Ascending Description
AddIcon (IMG,http://themaze.hebergratuit.com/icons/image.gif) .svg .SVG .wmf .WMF
AddIcon (IMG,http://themaze.hebergratuit.com/icons/gif.gif) .gif .GIF
AddIcon (IMG,http://themaze.hebergratuit.com/icons/jpg.gif) .jpg .JPG .jpeg .JPEG
AddIcon (IMG,http://themaze.hebergratuit.com/icons/png.gif) .png .PNG
AddIcon (IMG,http://themaze.hebergratuit.com/icons/psd.gif) .psd .PSD
AddIcon (IMG,http://themaze.hebergratuit.com/icons/ico.gif) .ico .ICO
AddIcon (IMG,http://themaze.hebergratuit.com/icons/tif.png) .tif .TIF .tiff .TIFF
AddDescription "Image PNG" *.png *.PNG
AddDescription "Image JPG" *.jpg *.JPG
AddDescription "Image BMP" *.bmp *.BMP
AddDescription "Image SVG" *.svg *.SVG
AddDescription "Image GIF" *.gif *.GIF
AddDescription "Image WMF" *.wmf *.WMF
AddDescription "Image PSD" *.psd *.PSD
AddDescription "Image ICO" *.ico *.ICO
AddIcon (VIDEO,http://themaze.hebergratuit.com/icons/wmp.png) .mov .MOV .avi .AVI .mpg .MPG .wmv .WMV
AddDescription "Video QuickTime" *.mov *.MOV
AddDescription "Video AVI" *.avi *.AVI
AddDescription "Video MPEG" *.mpg *.MPG
AddDescription "Video WMV" *.wmv *.WMV
AddIcon (AUDIO,http://themaze.hebergratuit.com/icons/wmp.png) .wma .mp3 .mp4 .midi .mid .WMA .MP3 .MP4 .MIDI .MID
AddDescription "Audio MP3" *.mp3 *.MP3
AddDescription "Audio MP4" *.mp4 *.MP4
AddDescription "Audio WMA" *.wma *.WMA
AddDescription "Audio MIDI" *.mid *.midi
AddIcon (FLA,http://themaze.hebergratuit.com/icons/fla.gif) .fla
AddIcon (AS,http://themaze.hebergratuit.com/icons/as.gif) .as
AddIcon (FLV,http://themaze.hebergratuit.com/icons/flv.gif) .flv
AddDescription "Fichier Flash Video" *.flv
AddDescription "Projet Flash" *.fla
AddDescription "Fichier ActionScript" *.as
AddIcon (SWF,http://themaze.hebergratuit.com/icons/swf.png) .swf
AddDescription "Animation Flash" *.swf
AddIcon (TXT,http://themaze.hebergratuit.com/icons/txt.png) .txt
AddDescription "Fichier de texte brut" *.txt
AddIcon (DOC,http://themaze.hebergratuit.com/icons/word.png) .doc .rtf .docx
AddDescription "Document Word" *.doc *.rtf *.docx
AddIcon (DOC,http://themaze.hebergratuit.com/icons/powerpoint.png) .ppt .pptx
AddDescription "Présentation PowerPoint" *.ppt *.pptx
AddIcon (DOC,http://themaze.hebergratuit.com/icons/excel.png) .xls .xlss
AddDescription "Feuille de calcul Excel" *.xls *.xlsx
AddIcon (PHP,http://themaze.hebergratuit.com/icons/php.gif) .php .phtml
AddDescription "Page Web PHP" *.php
AddDescription "Page Web PHP" *.phtml
AddIcon (HTM,http://themaze.hebergratuit.com/icons/web.gif) .htm .html .HTM .HTML .xhtml .XHTML
AddDescription "Page Web HTML" *.htm *.HTM
AddDescription "Fichier HTML Compilé" *.chm
AddIcon (HTC,/ftp/icons/chm.gif) .chm
AddIcon (HTC,http://themaze.hebergratuit.com/icons/ini.png) .htc
AddDescription "Comportement IExplorer" *.htc
AddIcon (CSS,http://themaze.hebergratuit.com/icons/css.png) .css
AddDescription "Feuille de style CSS" *.css
AddIcon (CSS,http://themaze.hebergratuit.com/icons/js.png) .js
AddDescription "Fichier Javascript" *.js
AddIcon (CSS,http://themaze.hebergratuit.com/icons/xml.png) .xml
AddDescription "Fichier XML" *.xml
AddIcon (EXE,http://themaze.hebergratuit.com/icons/exe.png) .exe .EXE
AddDescription "Exécutable" *.exe *.EXE
AddIcon (PDF,http://themaze.hebergratuit.com/icons/pdf.png) .pdf .PDF
AddDescription "Document Adobe PDF" *.pdf *.PDF
AddIcon (ARCHIVE,http://themaze.hebergratuit.com/icons/archive.gif) .jar .zip .rar .arj .arc .tar .targz .gz
AddDescription "Archive ZIP" *.zip *.ZIP
AddDescription "Archive RAR" *.rar *.RAR
AddDescription "Archive ARJ" *.arj *.ARJ
AddDescription "Archive ARC" *.arc *.ARC
AddDescription "Archive TAR" *.tar *.TAR
AddDescription "Archive JAR" *.jar *.JAR
AddDescription "Archive GZ" *.gz *.GZ
AddDescription "Archive TARGZ" *.targz *.TARGZ
AddIcon (C,http://themaze.hebergratuit.com/icons/c.gif) .c
AddDescription "Fichier C" *.c
AddIcon (H,http://themaze.hebergratuit.com/icons/h.gif) .h
AddDescription "Fichier d'ent-tête" *.h
AddIcon (VCPROJ,http://themaze.hebergratuit.com/icons/vcproj.gif) .vcproj
AddDescription "Projet Visual C++" *.vcproj
AddIcon (PAR,http://themaze.hebergratuit.com/dir_par.png) ..
AddIcon (DIR,http://themaze.hebergratuit.com/dir.png) ^^DIRECTORY^^
AddDescription "Dossier parent" ..
AddDescription "Répertoire" */
DefaultIcon http://themaze.hebergratuit.com/icons/txt.png
[code]
Vous pouvez constater le résultat ici :
http://themaze.hebergratuit.com/
Comme vous pouvez le constater,le .htaccess marche bel et bien : le fichier est bien masqué dans le listing,et nous avons nottament les icônes concernant aux types de fichiers.
Cependant celà ne charge pas les deux fichiers en tant que header et foot,le problème vient donc de là :
HeaderName http://themaze.hebergratuit.com/head.htm
ReadmeName /foot.html
Certes ce n'est pas les même liens,ceci pour montrer que j'ai éssayer divers lien et que rien ne change,que ce soit le lien direct en http comme ici (alors qu'ils marchent pour les icônes par exemple).
J'ai aussi éssayé avec le home directory indiqué par mon hébergeur soit:
/home/vol14/hebergratuit.com/nom_user/
mais aussi : /home/vol14/hebergratuit.com/nom_user/htdocs/ puisque c'est le nom du repertoire ou je peux uploader ..(en fte quand je me connecte par ftp dans le premier repertoire j'ai un fichier (do not upload here) et un fichier htdocs de créer donc j'upload dedans ...
Et voilà,impossible de se servir de ses 2 fonctions qui me sont vitale pour ce projet.
En espérant que quelqu'un puisse m'aider !!
Merci D'avance !
A voir également:
- Problème avec .htaccess (headername et readmename)
- Htaccess - Forum Référencement
- Aide avec chemin.php (.htaccess) ✓ - Forum PHP
- Probllème avec mon .htaccess - Forum Webmastering
- Réécriture d'urls avec .htaccess - Forum Référencement
- Question sur le htaccess ✓ - Forum Référencement