After setting up an SSL certificate on your website, you can automatically redirect all http traffic to the https version of your website. This article shows how to set up this redirect for your site.
Basic HTTPS Redirection
Follow these steps to enable a general redirect from http to https from your DirectAdmin control panel.
Note: We strongly recommend thoroughly checking your site on https before setting a redirect. You may find some content doesn’t load correctly using https. If this is the case, you should find and correct any “http” hardlinks on your site before setting the redirect. For more information, see our support guide on Handling Mixed Content Errors .
- Log in to DirectAdmin.
- Navigate to the appropriate user account and select the domain from the drop-down menu at the top of the page.
- Under the Account Management menu select SSL Certificates.
- Check the box for “Force SSL with https redirect” and click “Save”.
Allow a few minutes for the change to take effect. Then clear your browser cache and visit your site. You should see it redirecting from http to https.
WordPress HTTPS Redirection
WordPress has many plugins that will handle HTTPS redirection for you. We recommend using the Really Simple SSL plugin. See our support guide about this plugin for more info on how to use it.
Updating Google Analytics and Search Console
Google analytics and search console track sites by the full URL (including the protocol) rather than just the domain, so you will need to update your URL in both systems in order to keep tracking data accurately.
- Sign in to your account and navigate to the property for the site.
- Navigate to Admin > Property Settings
- Under “Default URL” select the dropdown for the protocol and change it to HTTPS.
- Click “Save”.
In Search Console it’s not possible to update the protocol for the existing property, so you will need to add a new property for the secure site.
- Sign in to Search Console.
- Click “Add a Property”.
- Select Website and enter you exact URL into the text box, e.g. ‘https://yourdomain.com’;. If your URL uses ‘www.’ include that too.
- Verify the site using your preferred method.