Hébergement Cloud Web - [RESOLU]Fichier Css / js non chargé car son type MIME, « text/html », n’est pas « text/
... / [RESOLU]Fichier Css / js ...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

[RESOLU]Fichier Css / js non chargé car son type MIME, « text/html », n’est pas « text/

Von
FlorianeD2
Erstellungsdatum 2024-01-15 08:13:16 (edited on 2024-09-04 12:52:12) in Hébergement Cloud Web


Bonjour à toutes et à tous,

Domaine principal : ldprojectionarchitecture.fr
Dossier racine : www -> avec module Wordpress
J'ai créer un sous-domaine : flowegest.ldprojectionarchitecture.fr
Dossier racine : ./fowegest ( même niveau que www )
Pas de module -> Site Php -> fichier transféré via ftp ( FileZilla )
Hébergement : OVH - Offre Perso - 2 base de données ( 1 pour domaine principal & 1 pour sous-domaine )

Apparemment, chemins de mes fichiers sont corrects.
Ma page d'accueil :
- non connecté = page de login
- connecté = page d'accueil d'un portail
S'affiche très bien hormis le css, le js & images.
image

J'ai mis instructions addType dans .htaccess, ajout type="text/css" ou type="text/javascript" sur mes balises script & link.
J'ai essayé divers méthode trouvé sur le net mais impossible.

voici mon entête http du fichier login.css :
image
On voit bien que l'on me renvoit du content-type: Text/html

Quand je fait un appel CURL --head https://www.sousdomaine.domaine/include/styles/css/login.css il m'envoit réponse http 200 OK
Content-type : text/html

Est-ce un problème sur le serveur Apache chez OVH ?

En local, je n'ai absolument aucuns problèmes tout s'affiche correctement.
Ce sont les mêmes versions de Php !

Je vous remercie de l'aide apportée, cela fait plus de 3h que je suis dessus ! ça devient urgent !
Cordialement


1 Antwort ( Latest reply on 2024-01-15 08:21:13 Von
fritz2cat officiel (d'avant la migration)
)


Je vous remercie de l'aide apportée,


J'ai répondu à la même question dans une autre conversation.