Always Force to Redirect HTTPS URL

| Last Updated: | In: Code Snippets


If you have recently moved your website to HTTPS from HTTP and facing the mixed content issues, or some of your site URLs are still redirected to HTTP, then you can use the below code snippets in your .htacess file.

Always Force to Redirect HTTPS URL

This htacess code will always force to redirect HTTPS URL of your websites.

If your website has developed on WordPress CMS (Content Management System), then you can also install the Really Simple SSL WordPress pluugin. After installation and activated, navigate to the Settings => SSL to configure this plugin.

Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool tutorials.


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:

Tags: , , , , ,