- Newest
- Most votes
- Most comments
Hello,
To forward all web traffic from A.com to B.com while keeping A.com’s email functioning through WorkMail, follow these steps:
Create an Alias Record: In Route 53, create an Alias A record at the apex of A.com that points to the EC2 instance or Load Balancer of B.com.
Maintain MX Records: Ensure that the MX records for A.com in Route 53 remain unchanged to continue directing email to WorkMail.
This setup allows web traffic to be routed to B.com while keeping email services intact for A.com.
=>To redirect A.com to B.com while maintaining email functionality for A.com:
=>Create an S3 bucket named A.com and configure it for website redirection to B.com.
=>In Route 53, set an Alias A record for A.com pointing to the S3 bucket.
=>Keep the existing MX records for A.com in Route 53 to ensure emails continue to route to Workmail.
=>This setup redirects web traffic from A.com to B.com without disrupting email services for A.com.
Good thought. Tried it. Response was: (InvalidChangeBatch 400: RRSet of type CNAME with DNS name A.com is not permitted at apex in zone A.com.). Perhaps I am setting up the CNAME record incorrectly, though it seems fairly straight forward.
CNAME isn't allowed for the zone apex record, try using an Alias instead https://repost.aws/knowledge-center/route-53-create-cname-record
You can create a CNAME record in the A.com zone which directs A.com to B.com.
Email for A.com is directed by MX records in the A.com zone.
Hope this helps.
There were some great suggestions but nothing seemed to work. Part of the problem is redirecting was to a SSL (HTTPS) b.com website. Since it was not clear what the web server was and where the approriate configure file was (two totally different sites are being served from the same IP address), I gave up and modfide an a.com index.html file to the following:
<!DOCTYPE HTML> <html> <head> <meta http-equiv="refresh" content="0;url=http://b.com" /> </head> <body> </body> This was less then ideal, but it works.
Good thought. Tried it. AWS would not let me create an A alias apex record that points to an ec2 instance.