soucis de redirection de la page d’accueil

#805048
  • Resolved Anonymous
    Rank Math free

    Bonjour,

    Pourquoi est-ce que dans la GSC j’ai le soucis de redirection de la page d’accueil alors qu’elle fonctionne bien ?
    voici le code du fichier .htaccess :
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    RewriteCond %{HTTP_HOST} ^www\.voiledepudeur\.com [NC]
    RewriteRule ^(.*)$ https://voiledepudeur.com/$1 [L,R=301]
    </IfModule>
    # o2switch pagespeed start / DO NOT REMOVE OR EDIT
    <IfModule pagespeed_module>
    ModPagespeed on
    ModPagespeedRewriteLevel PassThrough
    ModPagespeedEnableFilters add_head,canonicalize_javascript_libraries,collapse_whitespace,combine_css,combine_javascript,combine_heads,convert_meta_tags,dedup_inlined_images,elide_attributes,extend_cache,recompress_images,flatten_css_imports,hint_preload_subresources,inline_css,inline_javascript,lazyload_images,rewrite_javascript,move_css_above_scripts,move_css_to_head,insert_dns_prefetch,remove_comments,remove_quotes,rewrite_images,strip_image_meta_data,sprite_images
    </IfModule>
    # o2switch pagespeed end / DO NOT REMOVE OR EDIT
    Header always set Strict-Transport-Security max-age=31536000

    # BEGIN LSCACHE
    # END LSCACHE
    # BEGIN NON_LSCACHE
    # END NON_LSCACHE
    # This file was updated by Duplicator on 2024-01-30 18:18:46.
    # See the original_files_ folder for the original source_site_htaccess file.

    # BEGIN WordPress
    # Les directives (lignes) entre « BEGIN WordPress » et « END WordPress » sont générées
    # dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
    # Toute modification des directives situées entre ces marqueurs sera surchargée.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Thank you for contacting us and sorry for any inconvenience that this issue might have caused.

    To help us understand the problem more clearly and provide a quick and smooth solution, please elaborate more on the issue you are experiencing.

    Please send screenshots showing the exact problem and, if possible, a recorded screencast video demonstrating the issue.

    You can use tools like Imgur for screenshots or Loom for screencasts.

    We look forward to helping you further.

    Thanks.

    Anonymous
    Rank Math free

    I’m having exactly the same problem on my website:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    RewriteCond %{HTTP_HOST} ^www\.cidadelaemprestimos.com.br\.com [NC]
    RewriteRule ^(.*)$ https://www.cidadelaemprestimos.com.br/ $1 [L,R=301]
    </IfModule>
    # o2switch pagespeed start / DO NOT REMOVE OR EDIT
    <IfModule pagespeed_module>
    ModPagespeed on
    ModPagespeedRewriteLevel PassThrough
    ModPagespeedEnableFilters add_head,canonicalize_javascript_libraries,collapse_whitespace,combine_css,combine_javascript,combine_heads,convert_meta_tags,dedup_inlined_images,elide_attributes,extend_cache,recompress_images,flatten_css_imports,hint_preload_subresources,inline_css,inline_javascript,lazyload_images,rewrite_javascript,move_css_above_scripts,move_css_to_head,insert_dns_prefetch,remove_comments,remove_quotes,rewrite_images,strip_image_meta_data,sprite_images
    </IfModule>

    What should I do

    Hello,

    @We lend Please share the exact error message you’re getting in your Google Search Console regarding the redirect so we can check and advise accordingly.

    You can upload screenshots using this tool and add the link here.

    Looking forward to helping you.

    Hello @Emprestimos

    It seems your site is unreachable:
    https://imgur.com/ZibEGhm

    Please review it and revert to us. You can open a new ticket and describe clearly the issue you are having with Rank Math on your site.

    We look forward to helping you.

    Thanks.

    Anonymous
    Rank Math free

    Le site n’est pas inaccessible c’est juste que le lien ne sais pas correctement ajouté :
    Voici le vrai code contenu dans le fichier htaccess:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    RewriteCond %{HTTP_HOST} ^www\.voiledepudeur\.com [NC]
    RewriteRule ^(.*)$ https://voiledepudeur.com/$1 [L,R=301]
    </IfModule>
    # o2switch pagespeed start / DO NOT REMOVE OR EDIT
    <IfModule pagespeed_module>
    ModPagespeed on
    ModPagespeedRewriteLevel PassThrough
    ModPagespeedEnableFilters add_head,canonicalize_javascript_libraries,collapse_whitespace,combine_css,combine_javascript,combine_heads,convert_meta_tags,dedup_inlined_images,elide_attributes,extend_cache,recompress_images,flatten_css_imports,hint_preload_subresources,inline_css,inline_javascript,lazyload_images,rewrite_javascript,move_css_above_scripts,move_css_to_head,insert_dns_prefetch,remove_comments,remove_quotes,rewrite_images,strip_image_meta_data,sprite_images
    </IfModule>
    # o2switch pagespeed end / DO NOT REMOVE OR EDIT
    Header always set Strict-Transport-Security max-age=31536000

    # BEGIN LSCACHE
    # END LSCACHE
    # BEGIN NON_LSCACHE
    # END NON_LSCACHE
    # This file was updated by Duplicator on 2024-01-30 18:18:46.
    # See the original_files_ folder for the original source_site_htaccess file.

    # BEGIN WordPress
    # Les directives (lignes) entre « BEGIN WordPress » et « END WordPress » sont générées
    # dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
    # Toute modification des directives situées entre ces marqueurs sera surchargée.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Voici des captures décran du problème de redirection qui a été affiché récemment.
    https://imgur.com/a/DyfRSyQ

    Hello @Moussaelhadjmimoune,

    If you look closely you will notice the URLs reported on GSC as having redirection are actually not your homepage. They are either the version with WWW, one with just HTTP protocol, or one with HTTPS but WWW variant. The correct URL version of your homepage according to the structure of your site is https://voiledepudeur.com/.

    https://imgur.com/2REUIRL

    It is both right and good for your site’s SEO that the other variants redirect to the correct version of your homepage. In this instance, you can consider this report from GSC as informational as there is truly a redirect on those URLs, and further action is not required here.

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)

The ticket ‘soucis de redirection de la page d’accueil’ is closed to new replies.