title: How do I return a json file from s3 to a specific url, but only that url
body: <p>I have a special URL that has been set somewhere else and <strong>CANNOT be changed.</strong> </p>
  
  <p>mydomain.com/discountCards</p>
  
  <p>I need to return a JSON, from my s3 bucket whenever a server sends a fetch call to <code>mydomain.com/discountCards</code></p>
  
  <p>The issue is:</p>
  
  <p>I'm using a react app on mydomain.com with React-Router. So going to mydomain.com/discountCards displays a white react page (since nothing is at that url)</p>
  
  <p>I'm trying to set up Cloudfront to directly link to the s3 JSON file which works - but the issue is:</p>
  
  <p>it only works for mydomain.com/discountCards.json not mydomain.com/discountCards</p>
  
  <p>So.... right now my s3 bucket has a file called discountCards.json - but I need that to be discountCard without the ".json".</p>
  
  <p>Or something else? </p>
  
  <p>How do I return this .json from my s3, as a specific domain, using AWS s3, cloudfront, and route 53? </p>
  
  <p>Like I said, I got it all set up with cloudfront pointing to my s3 file, but it requires I include the file extension in the URL (which I cannot do, the url is already locked in stone at mydomain.com/discountCards not discountCards.json)</p>
  
  <p>This is so that other websites and apps can fetch that URL and get a json returned. Any other way to achieve this?</p>