How to make all my pages secure https?

Avatar
  • Answered
I own an SSL purchased through inmotionhosting

I would like to make my root domain force all pages to be secure https pages. I am prompted to login to cpanel and File Manager, click on show hidden files, got to .hta access file and insert code.

What is unclear is where I insert the code as there are multiple pages and folders. Us the inmotion code editor or html editor?

Please tell me precisely how to add the code to my .hta access file to make my entire site https (secure). Thank you.

Lawrence O'Connor
Avatar
johnpaulb-imhs1
Hello, Thank you for your question regarding making your pages secure. Here is a link to our guide on How to force HTTPS using the .htaccess file. Typically, you can add the rule to the top. Also, ensure your pages are serving links/images via secure (https) links. If you are using a CMS (such as WordPress, Joomla, Drupal, etc.) I recommend making the change in the dashboard, or with a plugin/extensions. This reduces the chances of a .htaccess rule interfering with the functionality. Thank you, John-Paul