what is the setting if change from http to https?

simonho17

New member
Joined
Oct 6, 2017
Messages
4
Hi

I would like to change my web from http to https, what are the steps which i can do it for the changes

Thanks
 
I think the best suggestion I could give is start googling a bit and read some tutorials.

The simple answer is you don't have to change any settings in directadmin to change your website from http to https. You just have to install a certificate (and probably make some changes in the code of your website).

In case it's not about your website but Directadmin, please let us know what your goals is so the question is a bit more clear. What is your current setup? There are already a few manuals on the forum available.
 
The redirect is simple. Just create .htaccess file with the following content:

RewriteEngine On

#Make sure that we are https
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

More hard is to update all your existing links if they are hardcoded. But even if you don't do it, it won't hurt much.
 
Back
Top