Title: Error redirect https
Last modified: March 13, 2023

---

# Error redirect https

 *  Resolved [miguelperez10](https://wordpress.org/support/users/miguelperez10/)
 * (@miguelperez10)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/error-redirect-https/)
 * hi,
 * I have a problem with http to https redirects.
   The Home redirects me well, but
   the rest of the pages do not.
 * For example:
   [http://cafeintenso.es/variedades-de-cafe/](http://cafeintenso.es/variedades-de-cafe/)
   [http://www.cafeintenso.es/variedades-de-cafe/](http://www.cafeintenso.es/variedades-de-cafe/)
 * These 2 urls should redirect to this:
   [https://cafeintenso.es/variedades-de-cafe/](https://cafeintenso.es/variedades-de-cafe/)
 * But for some reason it redirects me to home.
 * I have looked at Htacces and I have this code:
   Rewrite Engine On RewriteBase /
   RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ [https://%](https://%){HTTP_HOST}/[
   R=301,L]
 * In principle it should work fine right?
   I don’t understand why the redirect doesn’t
   work.
 * It happens to me with all the pages of my website except the home.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-redirect-https%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/error-redirect-https/#post-16554870)
 * Hi [@miguelperez10](https://wordpress.org/support/users/miguelperez10/),
 * It looks like the last rule that you attached in your post does not include the
   requested URI path. I expect that you might have to make a slight modification
   to that rule to include the requested page(s) as well.
 * An example would be modifying the last line of your rules, from:
 *     ```wp-block-code
       RewriteRule ^(.*)$ https://%{HTTP_HOST}/ [R=301,L]
       ```
   
 * To:
 *     ```wp-block-code
       RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
       ```
   
 * I’d always recommend making sure to save a back-up of the current .htaccess file,
   so you can always return to the ‘current/original’ state when necessary.
 * Hope this helps! Kind regards, Jarno
 *  Thread Starter [miguelperez10](https://wordpress.org/support/users/miguelperez10/)
 * (@miguelperez10)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/error-redirect-https/#post-16555322)
 * Thank you so much,
 * Now it works fine for me.
 * Regards
 *  Plugin Support [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/error-redirect-https/#post-16557106)
 * Hi [@miguelperez10](https://wordpress.org/support/users/miguelperez10/),
 * Thanks for confirming the solution, glad to hear that worked!
 * Kind regards, Jarno

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

The topic ‘Error redirect https’ is closed to new replies.

 * ![](https://ps.w.org/really-simple-ssl/assets/icon-256x256.png?rev=2839720)
 * [Really Simple Security - Simple and Performant Security (formerly Really Simple SSL)](https://wordpress.org/plugins/really-simple-ssl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-ssl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-ssl/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-ssl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-ssl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-ssl/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/error-redirect-https/#post-16557106)
 * Status: resolved