Results 1 to 3 of 3

Thread: what is the setting if change from http to https?

  1. #1
    Join Date
    Oct 2017
    Posts
    4

    what is the setting if change from http to https?

    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

  2. #2
    Join Date
    Nov 2013
    Location
    Belgium
    Posts
    59
    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.
    With kind regards,
    Niels

    Aphotrax.eu | https://aphotrax.eu

  3. #3
    Join Date
    May 2008
    Posts
    544
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •