Domaines et DNS - Redirection sous-domaine http vs https
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

Redirection sous-domaine http vs https

Von
TechS
Erstellungsdatum 2018-09-17 14:49:44 (edited on 2024-09-04 14:02:07) in Domaines et DNS

Bonjour,
Ma redirection ne fonctionne que depuis http://, depuis https://, j'ai le message suivant : Ce site est inaccessible shop.monsite.org n'autorise pas la connexion.

J'ai mis en place une redirection d'un sous-domaine type shop.monsite.org vers monsite.org/shop.

J'ai eu 2 actions:
- création de la redirection dans depuis le BO OVH
- rédaction du .htaccess suivant :
RewriteEngine On
RewriteCond %{HTTP_HOST} ^shop\.monsite\.org$
RewriteRule ^(.*)$ https://www.monsite.org/shop/ [R=301,L]

Que faire pour que la redirection fonctionne pour http**s**://shop.monsite.org ?

Merci beaucoup pour votre aide.


2 Antworten ( Latest reply on 2024-02-09 15:09:54 Von
fritz2cat officiel (d'avant la migration)
)


shop.monsite.org


Bonjour, monsite.org ne vous appartient pas.
Quel est votre nom de domaine, svp ?

Bonjour,

Merci d'avoir pris le temps de me répondre.
il s'agit en effet ici d'un exemple, je souhaiterais pouvoir garder mon nom de domaine anonyme.

Merci pour votre compréhension,


RewriteCond %{HTTP_HOST} ^shop.monsite.org$
RewriteRule ^(.*)$ https://www.monsite.org/shop/ [R=301,L]

Que faire pour que la redirection fonctionne pour http**s**://shop.monsite.org ?


Il me semble que dans votre exemple ça devrait fonctionner.

Antworten sind derzeit für diese Frage deaktiviert.