Redirect all site traffic from https://example.co.uk to https://www.example.co.uk
I've got an issue where I need to redirect all site traffic to the subdomain www. This is because the SSL certificate uses a SAN which is specifically
I have a redirect working for all HTTP traffic using the following in apache in the website conf file (using Mod Rewrite)
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^example\.co.uk$ [NC]
RewriteRule (.*) https://www.example.co.uk%{REQUEST_URI} [R,L]
This works fine until a user goes to
I was wondering if I'd botched the rules somehow? If not, is what I'm trying to do possible before the user gets an SSL error or would I have to find some way of redirecting before the users hits the server and gets the SSL certificate? Can Linodes DNS tools do this somehow?
Ta!
2 Replies
I can get them to remake the certificate (which is really easy actually) but it will mean them having to spend more money on certificates down the line which they don't want to do.
Let's Encrypt looks interesting! I haven't heard of them, I wonder if there are any known issues with browsers using certificates from there? EDIT: As soon as I posted that I found this…