Redirect from http to https in WordPress

0
Redirect from http to https in WordPress

If you have a website with a security certificate or just installed it and you notice that the load times are high you must force all the traffic to the new url with a redirection from http to https.

You can do this without installing any plugin through your .htaccess with the following snippet:

This snippet works for both normal and multisite installations.

As always before making any changes to your .htaccess make sure you save a backup.

 

LEAVE A REPLY