【发布时间】:2016-02-08 21:48:17
【问题描述】:
我有一个正在为 Heroku 环境开发的 Laravel webapp。在 heroku 环境中,如果我访问带有斜杠的 URL(即http://example.com/),我会得到一个 301 重定向,删除了斜杠(即http://example.com)。这将是一个很好的行为,除了重写是从 https 移动到 http!
我花了一些时间尝试在我的开发环境中本地重现该问题,但我不能,这让我相信问题出在 Heroku 的 Apache 配置上,但上传自定义 .htaccess 关闭 RewriteEngine 没有'也不要停止重写。
有没有人遇到过类似的问题?
我的 procfile 只包含web: vendor/bin/heroku-php-apache2 public,所以它非常小。
【问题讨论】:
标签: php apache heroku laravel-5