I have an .htaccess file that redirects files etc. and im trying to get it to work on my elastic beanstalk app. I have tried adding it to the root of the directory with no luck. I have also tried making a .config file in .ebextensions but still no luck. Does anyone know how to redirect/rewrite files on AWS elastic beanstalk?
Also, this Elastic Beanstalk app that I've made is the first and only thing I have ever done on AWS, so I am super new and don't know too much when it comes to AWS.
config file:
files:
/etc/httpd/conf.d/http-redirect.conf:
mode: "000644"
owner: root
group: root
content: |
RewriteEngine On
RewriteRule ^([_0-9a-z-]+)/controller.php /developers/controller.php
RewriteRule ^([_0-9a-z-]+)/([_0-9a-z-]+)/controller.php /developers/controller.php
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(/404|/js|/css|/img)+ /developers/index.php