How to Force HTTPS with the .htaccess File

Rate this post

Part of SEO optimization is making sure that visitors to your site have a secure connection. Use your site’s .htaccess file to force all visitors to visit with a secure HTTPS connection.

00:00 Introduction to forcing HTTPS using the .htaccess file
00:25 SSL Prerequisites
00:37 Getting to File Manager
00:43 Locating the File
01:43 Viewing the File
01:48 Editing your File
02:03 Code for Redirect
02:36 Testing the Code
03:14 Conclusion

Related Articles:

► Learn more in our full article – Force HTTPS with the .htaccess File –

►The Complete Guide to cPanel’s Free AutoSSL –

► How to Force HTTPS using .htaccess (article)

► How to Install Really Simple SSL

►Video: How to View Hidden FIles in cPanel File Manager –

►Viewing Hidden Files (htaccess) in cPanel’s File Manager –

►Video: How to Edit a File using the cPanel File Manager –

►How to Edit a File on My Server –

►cPanel Education Channel –

InMotion Hosting was founded in 2001 and provides personal and business web hosting for everyone! For more information about InMotion Hosting and the services we provide see here:




Mazi has nine years of web development experience with the past five years spent honing his skills with WordPress plugins and themes. He's an expert in WooCommerce and is the author of the Simple Sales Tax plugin, a popular sales tax compliance solution for WooCommerce. Brett understands the importance of excellent communication, prides himself on producing high-quality code, and is comfortable working solo or as part of a team.

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also
Back to top button