Problème d'indexation du site sur Google lié à 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.
Question

Problème d'indexation du site sur Google lié à HTTPS

by
MarleneK
Created on 2024-01-31 16:25:54 (edited on 2024-09-04 12:52:30) in Hébergements Web

Bonjour à tous,

Mon nom de domaine et mon hébergement sont chez OVH, j'ai réalisé mon site (simple page) sur Webacapella Responsive. J'ai bien mon certificat SSL et tout a l'air OK (mais je suis totalement novice dans ce domaine). Le problème, Google n'indexe pas mon site web car :
- La page n'est pas indexée : Page en double sans URL canonique sélectionnée par l'utilisateur
- HTTPS non valide et qui pourrait empêcher l'indexation
Voilà mon nom de domaine : sante-douce.com

Je ne sais plus quoi faire après avoir tenté plusieurs forum et essayé de comprendre le problème... Merci pour votre aide.


4 Replies ( Latest reply on 2024-02-01 08:26:32 by
fritz2cat officiel (d'avant la migration)
)


1douce.comdouce.com


Bonjour,

Créez un fichier .htaccess placé dans le même répertoire que votre index.html.
Ce fichier peut contenir par exemple:

RewriteEngine On
RewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Now, rewrite any request to the wrong domain to use www.
# [NC] is a case-insensitive match
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Merci, je vais essayer

Le site apparait maintenant en HTTPS sur smartphone ce qui n'était pas le cas jusque là, mais il n'est toujours pas indexé par Google.