Domain2 redirect to old One

I install MIAB in my domain suppose (domain1. com). (Consider its in IP - 1.1.1.1)

Now I add 2nd domain (domain2. com). I also change the A record and CNAME RECORD to my Hosting IP address. (Consider this IP is 2.2.2.2)

But problem is, when I want to access domain2.com from browser it start showing content from IP 1.1.1.1 and also give a warning for SSL certificate.

My domain2.com already have the ssl certificate. In warning it shows ther certificate of “box.domain1. com”.

Can anyone help me to resolve this issue.

Thanks !!

Add the following custom DNS records:

Type       subdomain          domain                         value
====================================================
A                           domain2.com                     2.2.2.2
A           www             domain2.com                     2.2.2.2

Then wait for DNS to update.

I already did this, anyway thanks for advice…

Maybe a stupid question. Resides domain 1 and domain2 on the same server or is domain2 pointing to a different server.

In the first case, domain2 also has IP address 1.1.1.1 and you have to place a redirect on the server; in case 2, you have to do the redirect outside of the MiaB

It’s quite uncommon, nowadays, to put multiple ip addresses on a server, for hosting.

@Ajayahlawat - Not the right place to market your new job. Sorry mate.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.