Skip to main content

Use SSL certificate for DNS redirected domains

Comments

1 comment

  • Damian

    "For domain1, I've added a DNS A record that points to domain2's ip. Now, when accessing domain1, the website from domain2 is server as expected because of this "redirection", which is what I want"

    This isn't a 'redirection'. When you set the A record to the second IP it basically asks the web server to display the content from the IP so the browser sees domain1 but the server shows the content and SSL cert from domain2.

    You would be best to do a 301/302 redirect from domain1 (having domain1 set to its correct IP) to domain2.

    Or park domain1 on top of domain2

    0

Please sign in to leave a comment.