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

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -