I’m having an issue. I have two domains in my server and I installed Let’s Encrypt SSL for both domains. First domain works fine without any issue at all. But the second domain redirects to the first domain.
The form you omitted upon the thread creation request useful information and would reduce the time spend between responses
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. crt.sh | 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:
I ran this command:
It produced this output:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
However the homepage doesn’t redirect but when I enter the admin url which is https://www.wpsnappy.com/wp-admin is redirects to https://www.stackpartner.com/wp-admin.
Sometimes I might be wrong to think that letsencrypt caused this at all. May be it’s nginx or something. I will have to take a deeper look into that.
However I have another question. Is it okay to generate SSL for let’s say 4 domains at once? What’s the difference between generating individual certificates and generating one for all? Is there any SEO disadvantage if I use the same certificate for all domains?
But this is a configuration of your Wordpress. And it's possible (I don't use Wordpress, so it's speculative) that WordPress allows only one login, not two. So it may be impossible to remove this redirect.
This isn't a problem. You can create one certificate with max. 100 domain names. If you have a lot of domains / subdomains on the same server, it may be easier to have only one certificate.
And this isn't SEO relevant. It's important that you have a valide certificate (you have) and no mixed content warnings. The different CommonName (CN=*.stackpartner.com) isn't a problem.
If you have a lot of customers, each with their own domain / subdomain, I prefer to create different certificates. Because some customers don't want to be listet public (in the certificate used by another customer), a single Certificate with all customer names shows them. But if you are owner of all domains, this isn't so relevant.
Thank you for helping me with that. If it wasn’t for you I wouldn’t have identified where the root was at all. By the way I figured out where the issue was taken place. It caused by redis (using the same prefixed database by both websites).
I added the cache key and now everything as I expected.