WebSite X5Help Center

 
Christel B.
Christel B.
User

Problème indexation search console  fr

Автор: Christel B.
Просмотрено 92, Подписчики 1, Размещенный 0  

Bonjour,

Je vous contacte concernant un problème technique rencontré sur un site publié avec Website X5 et qui impacte fortement l’indexation Google.

Contexte :
Le site est hébergé chez Infomaniak et correctement accessible en HTTPS.
Cependant, Website X5 génère systématiquement une page d’accueil accessible via :

https://domaine.tld/
https://domaine.tld/index.html

Ces deux URL sont accessibles en parallèle et Google les considère comme des doublons.
Dans Google Search Console, cela génère l’erreur :
“Page en double sans URL canonique sélectionnée par l’utilisateur”, ce qui empêche l’indexation correcte du site.

Pour corriger ce problème, nous devons ajouter manuellement une redirection 301 dans le fichier .htaccess :

RewriteEngine On
RewriteCond %{THE_REQUEST} /index.html [NC]
RewriteRule ^index.html$ https://domaine.tld/[R=301,L]

Cette correction fonctionne parfaitement pour le SEO.

Problème :
À chaque export complet du site, Website X5 réécrit automatiquement le fichier .htaccess et supprime cette règle, ce qui casse la redirection et relance les erreurs d’indexation dans Google Search Console.
Nous sommes donc obligés de modifier manuellement le .htaccess après chaque mise à jour du site.

Y a t'il une autre solution qui m'aurait échappé ?

Merci d'avance pour votre aide,

Christel

Размещено
8 Ответы - 1 Полезно - 1 Корректно
Incomedia
Eric C.
Incomedia

Hello Christel,
where are you adding this code exactly?
In the .htaccess file there is a section where no custom code should be entered because it would be replaced by the code generated by the software if necessary, so you should add the redirect instructions after this part of the file.

Online translation:

Bonjour Christel,
où ajoutez-vous exactement ce code ?
Dans le fichier .htaccess, il y a une section où aucun code personnalisé ne doit être inséré, car il serait remplacé par le code généré par le logiciel si nécessaire. Vous devriez donc ajouter les instructions de redirection après cette partie du fichier.

Читать больше
Размещено От Eric C.
Christel B.
Christel B.
User
Автор

je le modifie directement chez l hébergeur et dns les1ères lignes

Читать больше
Размещено От Christel B.
Incomedia
Eric C.
Incomedia

Hello Christel,
please make sure that the additional code is placed only after the portion automatically generated by WebSite X5:

# WebSite X5 - Start Code [do not edit]
Automatically generated code, if present, will be here
# WebSite X5 - End Code

RewriteEngine On
RewriteCond %{THE_REQUEST} /index.html [NC]
RewriteRule ^index.html$ https://domaine.tld/[R=301,L]

Online translation:

Bonjour Christel,
veuillez vous assurer que le code supplémentaire est placé uniquement après la portion générée automatiquement par WebSite X5 :

# WebSite X5 - Start Code [do not edit]
Le code généré automatiquement, s'il est présent, sera ici
# WebSite X5 - End Code

RewriteEngine On
RewriteCond %{THE_REQUEST} /index.html [NC]
RewriteRule ^index.html$ https://domaine.tld/ [R=301,L]

Читать больше
Размещено От Eric C.
Christel B.
Christel B.
User
Автор

Merci pour ton retour Eric. Ca fonctionne bien effectivement. Par contre il faudra faire ça pour tous les sites crées par website ? et sur les autres pages également ?

Читать больше
Размещено От Christel B.
Incomedia
Eric C.
Incomedia

Hello,
only the homepage should potentially encounter the issue, because of the two URLs it can be reached at, both with only the URL of the website and with URL + index.html/index.php.
On the Search Console, which of the URLs was marked as duplicate with no canonical?
I remain available.

Online translation:

Bonjour,
seule la page d’accueil pourrait éventuellement rencontrer ce problème, en raison des deux URL par lesquelles elle peut être atteinte : soit uniquement avec l’URL du site, soit avec l’URL + index.html / index.php.
Dans la Search Console, laquelle des URL a été indiquée comme dupliquée sans canonique ?
Je reste à votre disposition.

Читать больше
Размещено От Eric C.
Christel B.
Christel B.
User
Автор

Dans Google Search Console, l’URL signalée comme dupliquée sans canonique est : https://domaine.fr/index.html

Читать больше
Размещено От Christel B.
Incomedia
Eric C.
Incomedia

Hello Christel,
in other websites, you can set a code to specify a canonical address in the Properties of the homepage, in the Expert ---> After opening the HEAD tag section, either
<link rel="canonical" href="https://domaine.tld/">

or

<link rel="canonical" href="https://domaine.tld/index.html">
(or .php, depending on the actual suffix)

according to what you would prefer.

Online translation:

Bonjour Christel,
sur d’autres sites, vous pouvez définir un code pour spécifier une adresse canonique dans les Propriétés de la page d’accueil, dans Expert → Après ouverture de la balise HEAD, soit :
<link rel="canonical" href="https://domaine.tld/">

ou

<link rel="canonical" href="https://domaine.tld/index.html">
(où .php selon le suffixe réel)
selon ce que vous préférez.

Читать больше
Размещено От Eric C.
Christel B.
Christel B.
User
Автор

OK top ! 

merci beaucoup pour votre aide !!

Читать больше
Размещено От Christel B.