Title: Manually insert .htaccess redirect http to https
Last modified: January 22, 2019

---

# Manually insert .htaccess redirect http to https

 *  Resolved [nikoneddie](https://wordpress.org/support/users/nikoneddie/)
 * (@nikoneddie)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/manually-insert-htaccess-redirect-http-to-https/)
 * Hello,
 * I followed your instructions from this article: [https://really-simple-ssl.com/knowledge-base/manually-insert-htaccess-redirect-http-to-https/#comment-55072](https://really-simple-ssl.com/knowledge-base/manually-insert-htaccess-redirect-http-to-https/#comment-55072)
 * I have the following errors:
    #SSL TEST PAGE# This page is used purely to test
   for SSL availability. #SERVER-HTTPS-ON# (on) #SERVERPORT443# #ENVHTTPS# #LOADBALANCER#
 * #SUCCESFULLY DETECTED SSL#
 * As per the instructions above I added the code to “stop editing the htaccess 
   file” in the wp-config file?
    I added all the codes listed in the article for
   these errors. I checked my website after adding the code for each error. My website
   broke after adding the following code for #ENVHTTPS#.
 * if you see #ENVHTTPS#, add
    RewriteEngine on RewriteCond %{ENV:HTTPS} !=on RewriteRule(.*)
   [https://%](https://%){HTTP_HOST}%/$1 [R=301,L]
 * I noticed the code is different from all the other codes. Could the code be wrong
   or am I doing something wrong?
 * Also, I noticed after rechecking my website again for ssl ([https://www.nikaousa.com/wp-content/plugins/really-simple-ssl/ssl-test-page.php](https://www.nikaousa.com/wp-content/plugins/really-simple-ssl/ssl-test-page.php))
   that the errors were still there.
 * I would greatly appreciate your help.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmanually-insert-htaccess-redirect-http-to-https%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/manually-insert-htaccess-redirect-http-to-https/#post-11117917)
 * Hi,
 * This page does not list any errors, just shows the detected headers. These will
   not go away!
 * You do not need to add all code variations. Just one is enough.
 * If a line of code causes an error, you can remove it.
 * Hope this helps!
 *  Thread Starter [nikoneddie](https://wordpress.org/support/users/nikoneddie/)
 * (@nikoneddie)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/manually-insert-htaccess-redirect-http-to-https/#post-11118244)
 * I am sorry. I did not mean to say errors.
 * Thank you very much for your quick response and help!

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

The topic ‘Manually insert .htaccess redirect http to 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [nikoneddie](https://wordpress.org/support/users/nikoneddie/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/manually-insert-htaccess-redirect-http-to-https/#post-11118244)
 * Status: resolved