possible to add https to http redirect in site setting?

Discussion in 'Installation/Configuration' started by skysky, Dec 10, 2021.

  1. skysky

    skysky Member

    Hi

    possible to add https to http redirect in site setting? my site was using https, and SSL is cancelled. I need to redirect all existing google links to http when user opens https.

    thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This is possible, but not without a valid SSL certificate for the site as the redirect happens after the browser connected to the site via https. So you need a valid SSL cert again (a free SSL cert from Let's encrypt should be fine) and then you can add a redirect either via .htaccess or in the apache/nginx directives field of the Options tab of the website.

    May I ask why you want to do that? I don't think that it#s a good idea today to run a site with HTTP:// instead of https, browsers will show your site as insecure, rankings in search engines will probably decrease etc.
     
  3. skysky

    skysky Member

    thanks for the reply.
    the reason is there is an alias website domain name that is owned by our client, and when their domain name has problem. LE SSL can not auto renew. since this is an alias website, which is linked to our domain, it caused LE failed to auto renew our main site causing downtime. so we want to remove their HTTPS.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess it should be possible that you remove the domain alias for that domain from your site and re-add it as vhost alias domain by using the same webroot as your main website. This means the domain gets it#s own LE SSL cert and in case it fails, there is no effect on your main site.
     

Share This Page