Final answer:
To redirect users from www.yourdomain.com to the application at yourapp.freehosting.com, a CNAME record should be created in AWS Route 53, aliasing the custom domain to the hosting domain. The process involves creating a new record set in the hosted zone for www.yourdomain.com and setting the value to yourapp.freehosting.com. This change will take effect after DNS propagation.
Step-by-step explanation:
If you want to direct users from your domain www.yourdomain.com to your application hosted at yourapp.freehosting.com, you'll need to create a CNAME record in AWS Route 53. The CNAME record will alias www.yourdomain.com to yourapp.freehosting.com, ensuring that users accessing your domain will be redirected to your hosted application. Here's how you can set it up:
- Sign in to the AWS Management Console and open the Route 53 console.
- Navigate to your hosted zone for www.yourdomain.com.
- Create a new record set.
- In the Record type select 'CNAME - Canonical name'.
- For the Value, enter the domain name of your application: yourapp.freehosting.com.
- Save the record set, and the changes will take effect typically within a few minutes to 48 hours.
Once the DNS propagation is complete, users will be able to access your application using www.yourdomain.com.