Gérer et exploiter - JavaScript files are displayed as plain text on OVH
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

JavaScript files are displayed as plain text on OVH

Von
Christophe Hy
Erstellungsdatum 2025-02-13 23:33:48 in Gérer et exploiter

Bonjour,

Sur mon site laforgedutemps.com, tous mes fichiers .js s'affichent en texte brut (text/plain) au lieu d’être exécutés en JavaScript.

Tests effectués :

  • Ajout de AddType application/javascript .js dans .htaccessSans effet
  • Modification des permissions (644 fichiers, 755 dossiers) → Pas de changement
  • Test dans différents dossiers (/js/, /assets/js/) → Toujours bloqué
  • Content-Type dans la console développeur → text/plain au lieu de application/javascript

Comment activer la bonne prise en charge des .js sur OVH ? Est-ce bloqué par défaut ?

Merci d’avance ! 
tof