SEO redirect problem

Discussion in 'General' started by jhonatandiazp, Feb 23, 2026 at 8:05 PM.

  1. jhonatandiazp

    jhonatandiazp Member HowtoForge Supporter

    hello all,
    I want to know if this is the expecting behavior of ispconfig (3.3.1) I enabled SEO redirect for a domain from www.domain.com to domain.com. it works fine. but when I enabled for another domain. www.seconddomain.com to seconddomain.com. The ssl certificate for www.domain.com is also apply to www.seconddomain.com.
    Both Domain has let's Encript enabled and both works for domain.com and seconddomain.com. I am looking to redirect traffic for each domain from www.domain.com to domain.com, www.seconddomain.com to seconddomain.com, www.thirddomain.com to thirddomain.com, etc.

    Thank you
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Seo redirects and SSL are not related to each other. A seo redirect is a redirect, as the name implies. A redirect means that the browser receives a certain header and response from the server to connect to a different domain. If you add a domain as an alias or subdomain to a website, then both domains are part of the same SSL certificate as a website (vhost) can only have one SSL cert. If you want your domains to have separate SSL certificates, then you must create them as separate websites. Or use vhost alias domains instead or normal alias domain.
     
  3. jhonatandiazp

    jhonatandiazp Member HowtoForge Supporter

    Thank you for your response. But it is strange. Both domains are separate domains and SSL works in both of them. I do not understand why when I enabled SEO redirect in both of them, the SSL for www.domain.com get apply to www.seconddomain.com (because of this, I get the invalid SSL). When I check the SSL for www.seconddomain.com, it is the domain.com certificate. Really strange
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    SSL and redirects are not related, so a redirect does not apply a different SSL cert to a domain. When both domains belong to the same website, then both of them are in a multi-domain SSL cert as a vhost in Apache, and Nginx has only a single SSL cert. So when you add multiple domains to the same website as alias domains, then all these domains are part of the same multidomain SSL cert.

    When you disable the seo redirect, can you reach both domains with https?
     
  5. jhonatandiazp

    jhonatandiazp Member HowtoForge Supporter

    When it is enable or disable, I can reach both domains domain.com and seconddomain.com. My problem is when I enabled SEO redirect for each separate domain. When it is enable, domain.com and www.domain.com Certificate is good, no problem.
    Certificate for seconddomain.com works fine, but when I typed www.seconddomain.com I get the certiticate error. When I check site name it is for domain.com, not for seconddomain.com. I hope I can explained it better.
     
  6. jhonatandiazp

    jhonatandiazp Member HowtoForge Supporter

    Also, does it better to have ISPConfig Multiservers with assigned public IPs or have them behind a firewall with correspoding ports and One to one mapped IP.? Thanks again
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    If the www subdomain is not in the certificate, then you might not have added it. When you add seconddomain.com as alias domain to the website domain.com, then you must take care that you enabled auto subdomain www for the alias domain if you want to be able to reach the second domain with www and that it also has SSL.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Typically, you assign the IP's directly to the servers. Bit this highly depends on how you have set your network infrastructure and how you want it to be set up. That's not ISPConfig specific.
     

Share This Page