redhippo Help Centre

Home > WordPress > How To Force SSL on WordPress
Home > WordPress > How To Force SSL on WordPress
Posted in

How To Force SSL on WordPress

With Google’s announcement that it’s giving preference or higher search engine rankings to websites with SSL encryption, there’s never been a better time to switch your website from HTTP to HTTPS.

Previously many websites only secure certain pages or areas e.g. the login page or the checkout page or the admin area etc. Other websites choose to encrypt the entire website i.e. all pages. With this announcement from Google it seems the latter is the way to go. And we’ve gone that route with Red Hippo too. Our entire website is now encrypted and has been since 2014.

You may then want to ensure that you force dedicated SSL on your website, here’s how:

Force SSL on WordPress

Force All Traffic To Use SSL

To force all website traffic on your WordPress website to use HTTPS add the following code to your .htaccess file in your websites root folder.

Please note: If you already have existing code in your .htaccess file then add this code above the code with a similar starting prefix.
Please make sure to replace www.yourname.com with your domain name.

Force All Traffic To A Specific Folder Only To Use SSL

If you want to force SSL to a specific folder only on your website add the following code to your .htaccess file place in that specific folder.
Please make sure to replace www.yourname.com with your domain name.

If you need further assistance please ask a question below or open a support ticket.

I'd like to hear your comments or questions?

Grow your business with a beautiful new

Website!

Website Package