title: Remove ".php" file extension when using S3 / EC2
body: <p>I have set up an application and uploaded the files using elastic beanstalk. The files are saved in a S3 bucket with a EC2 instance running.</p>
  
  <p>The problem is I can only access the site files when manually adding the extension ".php".  </p>
  
  <p>I built the application using a .htaccess file for removing the file extension then my redirects and functions would use files without the ending e.g. "/index" instead of "/index.php".</p>
  
  <p>Because .htaccess is not an option using S3 buckets is there an easy alternative way of removing file extensions ? ( so "/index.php" files are read as "/index" then all functions/redirects work fine ). </p>