php - Why is Heroku trimming trailing slashes? -
i have laravel webapp developing heroku environment. on heroku environment, if visit url trailing slash (i.e. http://example.com/) 301 redirect removing trailing slash (i.e. http://example.com). fine behavior, except rewrite moving https http!
i've spent time trying reproduce issue locally in development environment , cannot, has led me believe issue heroku's configuration of apache, uploading custom .htaccess turning rewriteengine off didn't stop rewrite either.
has encountered similar issue?
my procfile containsweb: vendor/bin/heroku-php-apache2 public it's quite minimal.
heroku not perform such redirects. apache adds slashes directory indexes if enabled, that's it.
your application doing redirect somewhere, either in code or .htaccess, , request protocol not preserved because request dyno http - termination of ssl happens @ load balancer.
set application trust heroku load balancer proxy reads request protocol x-forwarded-proto, or change rewrite rules that.
Comments
Post a Comment