Title: Multiple 301 redirections to https
Last modified: November 28, 2017

---

# Multiple 301 redirections to https

 *  [javierojuel](https://wordpress.org/support/users/javierojuel/)
 * (@javierojuel)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/multiple-301-redirections-to-https/)
 * Hello,
 *  I am moving several websites to Siteground and I found something annoying. After
   installaed the Let’s Crypt certificate and this plugin, I forced the https connection.
   The plugin write some redirections in the .htaccess but it creates a lot of them.
   These are the redirections from the URL [http://nutricionistabarcelona.com/](http://nutricionistabarcelona.com/)
   to the https version of the site
 * [http://nutricionistabarcelona.com/](http://nutricionistabarcelona.com/)
    301
   Moved Permanently [http://www.nutricionistabarcelona.com/](http://www.nutricionistabarcelona.com/)
   301 Moved Permanently [https://www.nutricionistabarcelona.com/](https://www.nutricionistabarcelona.com/)
   301 Moved Permanently [https://nutricionistabarcelona.com/](https://nutricionistabarcelona.com/)
   200 OK
 *  In my opinion, the rules of the .htaccess should be different to redirect the
   different versions with juts one redirection. Do you agree with it? Would you
   introduce this change in a future upgrade of the plugin? Thank you for your nice
   work!
    -  This topic was modified 8 years, 4 months ago by [javierojuel](https://wordpress.org/support/users/javierojuel/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultiple-301-redirections-to-https%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [ivanatanasov](https://wordpress.org/support/users/ivanatanasov/)
 * (@ivanatanasov)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/multiple-301-redirections-to-https/#post-9770335)
 * [@javierojuel](https://wordpress.org/support/users/javierojuel/) – Ivan Atanasov
   from SiteGround here.
 * By activating the HTTPS via SG Optimizer, the following lines will be added to
   your .htaccess file:
 *     ```
       # HTTPS forced by SG-Optimizer
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteCond %{HTTPS} off
       RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
       </IfModule>
       ```
   
 * This is also a 301 redirect, however, it does not rely on different lines for
   www and non-www, instead it catches all URLs.
 * I was not able to find the 301 redirects you are describing in your .htaccess
   file. They might have been left residue from previous modifications you were 
   making on the site.

Viewing 1 replies (of 1 total)

The topic ‘Multiple 301 redirections to https’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 1 reply
 * 2 participants
 * Last reply from: [ivanatanasov](https://wordpress.org/support/users/ivanatanasov/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/multiple-301-redirections-to-https/#post-9770335)
 * Status: not resolved