How to run HTTP Redirects on AWS CloudFront

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 8

  • @ShahzadRasul-uo7gu
    @ShahzadRasul-uo7gu 5 місяців тому +3

    Great video - you really understand what your talking about! Sad havne't seen new vids for 2 years

  • @shivamanand8998
    @shivamanand8998 Рік тому +1

    Thanks, I was looking for a video to differentiate Lambda Edge and CloudFront Functions

  • @oismaelash
    @oismaelash Рік тому +1

    Great video!

  • @danielmd3000
    @danielmd3000 2 роки тому

    Redirects force the use of CORS witch breaks samesite and will be problematic when 3rd party cookies get dropped by browser vendors. In those cases it would be good to have the option to do a forward.

  • @healthvative5315
    @healthvative5315 2 місяці тому

    Awesome! Is possible to redirect 40+ URLs to redirect to the same website using lambda and cloudfront? For example /old.url/product/api/index.html to /new.url/api/authentication/config/index.html#group. Thanks

    • @the-aws-ninja
      @the-aws-ninja  2 місяці тому

      You can certainly create a URI match WAF rule for each, with a custom 307 response to the new URI

  • @roiromano2059
    @roiromano2059 2 роки тому

    Is there any option to do rewrite to the URI? Let’s say I have /api/int/index.htm -> rewrite to -> api/1427389/int/index.htm

    • @the-aws-ninja
      @the-aws-ninja  2 роки тому

      You can use CloudFront Functions or Lambda@Edge for that