Domain is set as a forward in Plesk, but gives a SSL Certificate error when trying to connect

Problem Description

  • You set a domain in Plesk to forward to another domain
  • When using that forward, you receive an error (typically in Chrome) about the SSL certificate

Underlying Issue

Plesk's "forwarding" doesn't allow for SSL certificates, as Domain Aliases do, so connecting to the forwarding domain by https:// will cause a SSL certificate error. 

Problem Resolution

  • Remove the forward and instead set the domain to "Website Hosting" or "Web Hosting".
  • Go to Plesk's File Manager for the domain
  • Click "New" and "New File"
  • Name the file ".htaccess"
  • Copy and paste the below code into the file; replacing "" with the domain you'd like to forward to.
 RewriteEngine On
 RewriteCond %{REQUEST_URI} !\.well-known/acme-challenge
 RewriteRule ^(.*)$$1 [R=301,L]

The issue should now be resolved.

  • 0 Users Found This Useful