Just a question about a htaccess setting

Thanks for a great plugin.

I have a question, just to help me learn. I have been using Simple SSL with great success. Jus this weekend I upgraded my host from a shared GoDaddy account to what they call web hosting plus, which is not shared anymore. When I changed my DSN to point to the new IP, my website got redirect errors and then page not found (404) errors after removing all plugins. After a lot of work I was able to re-create the htaccess file and got it to work. Comparing the two htaccess files, the difference is that the one that did not work has this line-

RewriteCond %{HTTP:X-Forwarded-Proto} !https

and the good one has this line instead –

RewriteCond %{HTTPS} !=on [NC]

Just for my education, could you tell me the difference and why when moving to a new hosting platform this caused an issue?

Thank you so much.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer