Skip to main content

Duplicate content issue?

Comments

5 comments

  • cPanelLauren
    I would assume that Google is finding the content on the main domain when the aliased domain fails on https because of the way that apache serves https VirtualHosts - it's going to load the first SSL VirtualHost in the configuration for that IP address if the domain does not have an SSL. cPanel offers free 90-day SSL certificates if you don't have those available I would suggest contacting your provider. Really, the only way to resolve this specific issue would be to use an SSL certificate unless you remove the redirects to https and/or force http only for sites without SSL certs. An alias is a redirect in a way but essentially you're parking that domain on top of another domain, so it will use the domain name but have the content of the other site, a redirect is going to take you to the other site. Thanks!
    0
  • tortuga
    I would assume that Google is finding the content on the main domain when the aliased domain fails on https because of the way that apache serves https VirtualHosts - it's going to load the first SSL VirtualHost in the configuration for that IP address if the domain does not have an SSL. cPanel offers free 90-day SSL certificates if you don't have those available I would suggest contacting your provider. Really, the only way to resolve this specific issue would be to use an SSL certificate unless you remove the redirects to https and/or force http only for sites without SSL certs. An alias is a redirect in a way but essentially you're parking that domain on top of another domain, so it will use the domain name but have the content of the other site, a redirect is going to take you to the other site. Thanks!

    Thanks for the response. Yes, it's finding the main content because of the redirects being broken by the lack of valid SSL certificates. You mentioned that you can force http only - how do you do that?
    0
  • cPanelLauren
    An .htaccess redirect would do the trick - something like this might work: RewriteEngine On RewriteCond %{HTTPS} on RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    0
  • tortuga
    An .htaccess redirect would do the trick - something like this might work: RewriteEngine On RewriteCond %{HTTPS} on RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    But that would need the certificate again wouldn't it? Also it wouldn't work on an alias domain would it?
    0
  • cPanelLauren
    I don't believe so, it's saying if https is on redirect 'host' to http. That should suit your purposes
    0

Please sign in to leave a comment.