Title: Http to https redirection
Last modified: November 23, 2023

---

# Http to https redirection

 *  Resolved [elo8617](https://wordpress.org/support/users/elo8617/)
 * (@elo8617)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/http-to-https-redirection/)
 * Hi,
 * In advance, sorry for my bad english, I’m french.
 * If I correclty understand, the “Enforce SSL” option add a 301 redirection from
   http to https ? That it’s correct ?
 * At the beginning, the site was indexed in http by Google.
 * Then, I’ve installed a SSL and enforce the ssl from Solid Security, but Google
   denied to index the https version. Any idea ?
 * In advance, thanks.
 * Best regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhttp-to-https-redirection%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/http-to-https-redirection/#post-17224436)
 * Hi [@elo8617](https://wordpress.org/support/users/elo8617/), thanks for reaching
   out! We’re happy to help you here.
 * While both methods might seem similar, they serve different purposes:
   The Solid
   Security Enforce SSL feature ensures all connections to the website admin area
   are made over SSL/TLS. t does not add a 301 redirect and is implemented within
   the WordPress configuration (wp-config.php).On the other hand, a 301 redirect
   deals with URL changes and is typically configured at the server level. It’s 
   a permanent redirect, indicating that the resource has moved permanently to another
   location.If Google is having trouble indexing the HTTPS version of your site (
   after implementing SSL), there might be a misconfiguration somewhere. I’ll try
   to list down some troubleshooting steps that you can do to resolve it:
    - In _WP Admin > Settings > General_, ensure that both WordPress Address and
      Site Address URLs are set to `https://rcognitiv.fr`
    - In_ WP Admin > Settings > Reading_, ensure that the Search engine – “Discourage
      search engines from indexing this site” box isn’t checked. Then double-check
      your site’s robots.txt file and make sure it isn’t blocking the Googlebot 
      from crawling the HTTPS version.
    - Re-save your WP Permalinks settings.
    - Check your site’s .htaccess file to ensure that there aren’t conflicting redirect
      rules.
    - Double-check your SSL configuration and make sure that your SSL certificate
      is valid.
    - Make sure that all the site’s internal links are set to HTTPS. You can search
      your database for HTTP instances and update them using a query. Or, you can
      use a search-and-replace WordPress plugin. In both cases, make sure to have
      a site backup and, preferably, ask for dev/hosting assistance before proceeding.
    - Set up proper 301 redirects from HTTP to HTTPS in your server configuration
      or by using a WordPress plugin.
    - Use Google Search Console to add/verify the HTTPS version of your site, and
      make sure your sitemap is correct and includes the HTTPS URLs.
    - Lastly, try clearing all your caches (plugin, CDN, server).
 * If the issue persists, I’d recommend asking for a developer/SEO assistance to
   investigate further. I’d also recommend checking this article out: [https://www.searchenginejournal.com/definitive-list-reasons-google-isnt-indexing-site/118245/](https://www.searchenginejournal.com/definitive-list-reasons-google-isnt-indexing-site/118245/)
 * Hope this helps!
 *  Thread Starter [elo8617](https://wordpress.org/support/users/elo8617/)
 * (@elo8617)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/http-to-https-redirection/#post-17224555)
 * Hi,
 * Thank you very much !!
 * Here my answers :
    - In _WP Admin > Settings > General_, ensure that both WordPress Address and
      Site Address URLs are set to `https://rcognitiv.fr` ->> YES
 *  - In_ WP Admin > Settings > Reading_, ensure that the Search engine – “Discourage
      search engines from indexing this site” box isn’t checked. Then double-check
      your site’s robots.txt file and make sure it isn’t blocking the Googlebot 
      from crawling the HTTPS version. >> YES
 *  - Re-save your WP Permalinks settings. >> I WILL TRY
 *  - Check your site’s .htaccess file to ensure that there aren’t conflicting redirect
      rules.
 * HERE RULES
 * RewriteCond %{HTTPS} on [OR]
   RewriteCond %{SERVER_PORT} ^443$ [OR]RewriteCond%{
   HTTP:X-Forwarded-Proto} httpsRewriteRule .* – [E=WPR_SSL:-https]
    - Double-check your SSL configuration and make sure that your SSL certificate
      is valid.
       IT’S OK
 *  - Make sure that all the site’s internal links are set to HTTPS. You can search
      your database for HTTP instances and update them using a query. Or, you can
      use a search-and-replace WordPress plugin. In both cases, make sure to have
      a site backup and, preferably, ask for dev/hosting assistance before proceeding.
      
      I’VE ALLREADY MADE THIS VERIFICATION WITH BETTER SEARCH AND REPLACE
    - Set up proper 301 redirects from HTTP to HTTPS in your server configuration
      or by using a WordPress plugin. 
      HOW I CAN DO THIS ? I’VE THIS RESULT WITH
      A REDIRECTION CHECKER[http://rcognitiv.fr/](http://rcognitiv.fr/) HTTP/1.1
      301 Moved Permanently Content-Type: text/html; charset=UTF-8 Transfer-Encoding:
      chunked Connection: keep-alive Keep-Alive: timeout=15 Date: Thu, 23 Nov 2023
      12:51:01 GMT Server: Apache X-Powered-By: PHP/8.1.25 X-Redirect-By: Solid 
      Security Location: [https://rcognitiv.fr/](https://rcognitiv.fr/)
    - Use Google Search Console to add/verify the HTTPS version of your site, and
      make sure your sitemap is correct and includes the HTTPS URLs.
      HERE IS MY 
      SITEMAP [https://rcognitiv.fr/sitemap_index.xml](https://rcognitiv.fr/sitemap_index.xml)
      GOOGLE REPLY THIS “Le sitemap redirige vers une page http”. I DON’T UNDERSTAND
      WHY.
    - Lastly, try clearing all your caches (plugin, CDN, server).
      In advance, thanks!

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

The topic ‘Http to https redirection’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=2980272)
 * [Solid Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [elo8617](https://wordpress.org/support/users/elo8617/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/http-to-https-redirection/#post-17224555)
 * Status: resolved