Skip to content

Instantly share code, notes, and snippets.

@clouddueling
Last active December 18, 2015 21:09
Show Gist options
  • Select an option

  • Save clouddueling/5845531 to your computer and use it in GitHub Desktop.

Select an option

Save clouddueling/5845531 to your computer and use it in GitHub Desktop.
Force https on elastic beanstalk
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTP_HOST} =clouddueling.com [OR]
RewriteCond %{HTTP_HOST} =www.clouddueling.com
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI}%{QUERY_STRING} [L,R]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
@lightninglu10

Copy link
Copy Markdown

hey, came across your forcing https through google. just wondering, what does that second rewritecond and rewrite rule do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment