amazon web services - How to redirect traffic from non www domain name to www.example.com in AWS Route 53 -


i own domain name in aws route 53 'www.derbyware.com', have web application running @ 'http://node147934-env-7029269.phx.enscaled.us' on jelastic. users want them access web application using www.derbyware.com not ugly url 'http://node147934-env-7029269.phx.enscaled.us'. made www.derbyware.com act domain name web application. non www 'derbyware.com' not work.

you can test urls.

enter image description here

this solution aws support

resolution:

use following procedure redirect domain. in example, redirect example.com example.net.

requirements:

  • a hosted zone domain example.com hosted in amazon route 53.
  • you have permissions add resource records hosted zone of example.com.
  • you have permissions create amazon s3 bucket.
  • you able create s3 bucket exact name example.com.

note: sites must http, because redirect cannot connect s3 on https.

  1. in amazon s3 console, create s3 bucket exact name example.com.

note: s3 bucket names must globally unique. if bucket name need in use, solution cannot used.

  1. choose bucket created, , choose properties. expand static website hosting dropdown menu, , select redirect requests host name.
  2. in redirect requests host name field, enter example.net , choose save.
  3. in route 53 console, select hosted zone named example.com.
  4. create resource record example.com following values:

    • record type: choose ipv4 address.
    • alias: choose yes.
    • alias target: select blank value field, expand drop down menu, , choose s3 bucket under header s3 website endpoints.
    • routing policy: choose simple.
    • evaluate health target: choose no , choose create. note: drop-down menu might take few moments populate bucket name.

you should able redirect example.com example.net. can confirm browsing example.com or curl example.com. should see "301 moved permanently" in curl output, redirecting example.net.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -