Skip to content

Instantly share code, notes, and snippets.

@soham2008xyz
Forked from brickgale/.htaccess
Created February 6, 2019 07:47
Show Gist options
  • Save soham2008xyz/def667ef3c3635b6afadde136d993293 to your computer and use it in GitHub Desktop.
Save soham2008xyz/def667ef3c3635b6afadde136d993293 to your computer and use it in GitHub Desktop.
Laravel force https for Heroku
#add this on public/.htaccess for Laravel
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
web: vendor/bin/heroku-php-apache2 public/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment