How to redirect to HTTPS with .htaccess on Heroku Cedar stack

前端 未结 3 1705
借酒劲吻你
借酒劲吻你 2020-12-05 10:39

I\'m new to cloud hosting...

I\'m working on a PHP web app that\'s hosted on Heroku as a \"Cedar\" app. Heroku offers \"piggy back\" SSL to all their subdomains, so

3条回答
  •  孤城傲影
    2020-12-05 11:18

    If heroku is not picking up your .htaccess file you might have to use a a custom application level Apache configuration as documented by heroku

    Basically you'll need to add this to your profile: web: vendor/bin/heroku-php-apache2 -C apache_app.conf

提交回复
热议问题