I own the domains kirkbymicrowave.co.uk and kirbymicrowave.co.uk. The former is my surname, the latter is a common mis-spelling. I want to redirect any of these 4 mis-spelt ways of calling the site (with/without www, with/without SSL)
http://kirbymicrowave.co.uk (works okay)
http://www.kirbymicrowave.co.uk (fails)
https://kirbymicrowave.co.uk (works okay)
https://www.kirbymicrowave.co.uk (fails)
to https://www.kirkbymicrowave.co.uk/ (i.e, correct spelling, SSL, with the www)
I am unsure of the best way to do this in Apache, but what I currently have in all four virtual hosts is the line
Redirect "/" "https://www.kirkbymicrowave.co.uk/"
I believe this virtual host is working okay.
<VirtualHost 109.228.58.153:80>
ServerName kirbymicrowave.co.uk
ServerAdmin drkirkby@kirkbymicrowave.co.uk
DocumentRoot /var/www/html/kirkbymicrowave.co.uk
ErrorLog ${APACHE_LOG_DIR}/error-KIRBYMICROWAVE.co,uk-80.log
CustomLog ${APACHE_LOG_DIR}/access-KIRBYMICROWAVE.co.uk-80.log combined
Redirect "/" "https://www.kirkbymicrowave.co.uk/"
</VirtualHost>
but this one is not.
<VirtualHost 109.228.58.153:80>
ServerName www.kirbymicrowave.co.uk
ServerAdmin drkirkby@kirkbymicrowave.co.uk
ErrorLog ${APACHE_LOG_DIR}/error-www.KIRBYMICROWAVE.co.uk-80.log
CustomLog ${APACHE_LOG_DIR}/access-www.KIRBYMICROWAVE.co.uk-80.log combined
DocumentRoot /var/www/html/kirkbymicrowave.co.uk
Redirect "/" "https://www.kirkbymicrowave.co.uk/"
</VirtualHost>
Checking the domain with two online tools, gives two very different results.
https://check-your-website.server-daten.de/?q=kirbymicrowave.co.uk says No Trusted Certificate
https://www.ssllabs.com/ssltest/analyze.html?d=kirbymicrowave.co.uk gives the domain a Grade A
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:kirbymicrowave.co.uk
I ran this command:
Accessed two different sites which are supposed to check SSL certifacates
https://www.ssllabs.com/ssltest/analyze.html?d=kirbymicrowave.co.uk
It produced this output:
https://check-your-website.server-daten.de/?q=kirbymicrowave.co.uk says No Trusted Certificate
https://www.ssllabs.com/ssltest/analyze.html?d=kirbymicrowave.co.uk gives the domain a Grade A.
I believe the issue may be how I am redirecting the site, as this site is intended only to catch a common mis-spelling of Kirkby. The second K is often ommitted, so this domain was purchased to catch those cases.
My web server is (include version): Apache
The operating system my web server runs on is (include version): Debian 9
My hosting provider, if applicable, is:1 and 1
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):0.28.0


