I need to rewrite and secure a URL through Plesk or via Command line.
I'm using this code to accept incoming traffic from Clientdomain.gov.uk that doesn't exist anywhere, it's created just on the Registar and it point to our server IP with an A record, in our server we have a domain that it calls myServerdomain.uk
How can I have the same result but with an SSL certificate of LE?
I'm using this code to accept incoming traffic from Clientdomain.gov.uk that doesn't exist anywhere, it's created just on the Registar and it point to our server IP with an A record, in our server we have a domain that it calls myServerdomain.uk
Code:
ServerAlias www.Clientdomain.gov.uk Clientdomain.gov.uk
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(w{3}\.)?myServerdomain\.uk [NC]
RewriteRule (.*) http://www.mydomain.gov.uk/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
How can I have the same result but with an SSL certificate of LE?
Last edited: