Automatically to redirect a HTTP webpage towards HTTPS

We indicated you as redirecting to your visitors from standard port HTTP towards the safe port https if you have a certificate of security SSL installed in your domain to guarantee that the information is transmitted safely.

Author: Emilio C.S.
Published the (updated )

Redirection with .htaccess

.htaccess located in the public directory /public_html inserts the following code in the file of your plan of lodging Web. You can publish the content of the file .htaccess acceding by FTP or making use of the utility File manager of the Control Panel of your plan of lodging.

RewriteEngine On
RewriteCond % \ {HTTPS} in off
RewriteRule ^ (. *) $ https://% \ {HTTP_HOST} % \ {REQUEST_URI} [L, R=301]

It is possible that the file .htaccess contains other essential directives for correct funcionameinto of your webpage, you do a backup copy before realising modifications.

Redirection with plugin in WordPress

If your webpage has been created with Wordpress, you can make use of plugins as Easy HTTPS Redirection and Really Simple SSL to create the redirection.

Easy HTTPS Redirection

Its configuration is very simple. Once installed and activated, it sees Adjustments/HTTPS Redirection and selects to Inable automatic redirection to the €œHTTPS€ and The whole domain. It can be recommendable that Marquess option FORCE resources to uses HTTPS URL to force the load by https of any resource with a static direction that has been used in some article, for example an image.

Simple Really SSL

Once installed and activated, it will take to Adjustments/SSL where you will find the following recommendations: to change to any http:// reference by //in the load of archives .css and .js, and to load images, style sheets or scripts of a domain without certificate SSL to one with certificate or your own servant.

<link rel= " stylesheet€ href= " " > <link rel= " stylesheet€ href=€/ " >

It selects To modify the rules of rewrite when activating (it unmarks this when you find errors) and you click in the button Ahead, active SSL!