title: Can I use AWS API Gateway as a reverse proxy for a S3 website?
body: <p>I have a serverless website on AWS S3. But S3 have a limitation that I want to overcome: it don't allow me to have friendly URLs.</p>
  
  <p>For example, I would like to replace URL:</p>
  
  <p>www.mywebsite.com/user.html?login=daniel</p>
  
  <p>With this URL friendly:</p>
  
  <p>www.mywebsite.com/user/daniel</p>
  
  <p>So, I would like to know if I can use Lambda together with API Gateway to achieve this.</p>
  
  <p>My idea is:</p>
  
  <p>API Gateway ---> Lambda function ---> fetch S3 resource</p>
  
  <p>The API Gateway will get ANY request, and pass information to a Lambda funcion, that will process some logic using the request URL (including maybe some database query) and then fetch the resource from S3.</p>
  
  <p>I know AWS API Gateway main purpose is to be a gateway to REST APIs, but can we also use it as a proxy to an entire website?</p>