Problème de redirection Too many redirects
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.
Question

Problème de redirection Too many redirects

by
JaweherB
Created on 2020-02-01 10:30:38 (edited on 2024-09-04 13:25:31) in Domaines et DNS

Bonjour,
J'ai un énorme problème j'ai fais une redirection de http vers https (j'ai suivi les étapes du document de support ovh et les instructions du conseiller client) mais ça ne marche pas. Je ne peux plus accéder au site (le message d'erreur : too many redirects)
le site: https://lusaa.org


2 Replies ( Latest reply on 2020-02-01 12:16:21 by
JaweherB
)

choisir ses lectures ;)

au **début** de ton `.htaccess`:

```text
RewriteEngine On

## www -> no-www
RewriteCond %{HTTP_HOST} ^www\.(.+)$
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L,NE,QSA]

## http -> https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE,QSA]
```

Merci

Replies are currently disabled for this question.