I'm getting a pretty weird error while trying to deploy a Laravel 5 application to Heroku. If I try to access my root domain https://my-app.herokuapp.com
it works fine. However, if I try to access and other domain that is /
something aka https://my-app.herokuapp.com/api/v1/users
it gives me a 404 not found. Heroku is actually trying to go to the folder /api/v1/users instead of reading the routes file.
here is my Procfile:
web: vendor/bin/heroku-php-nginx public/
now if I try the same thing but with an apache server it works fine:
web: vendor/bin/heroku-php-apache2 public/