Public Cloud-old - Exception dans .htaccess
... / Exception dans .htaccess
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

Exception dans .htaccess

Von
LionelD34
Erstellungsdatum 2018-09-08 12:17:50 (edited on 2024-09-04 11:41:33) in Public Cloud-old

Bonjour,
Dans le fichier .htaccess il y a une redirection systematique vers le https, sauf que pour un repertoire en particulier j'ai besoin qu'il n'y est pas de redirection https, est-ce possible, quelqu'un peut-il me donner une info pour que je puisse gérer cette exception

merci

Bien cordialement


1 Antwort ( Latest reply on 2023-11-07 17:10:58 Von
fritz2cat officiel (d'avant la migration)
)


sauf que pour un repertoire en particulier


C'est certainement possible.

Les conditions peuvent être couplées ...
donc **si** on n'est pas en HTTPS **et** que le répertoire est différent de /xxx , **alors** il faut rediriger vers HTTPS.

Si vous mettez 2 conditions dans le .htaccess, ça correspond au [AND] dont nous avons besoin.

Je vous laisse chercher, voici une piste https://stackoverflow.com/questions/12484814/or-flag-in-htaccess-mod-rewrite