Skip to content

Instantly share code, notes, and snippets.

@BHEADRICK
Created October 10, 2019 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BHEADRICK/31f92ff190a5969db620acd377eee249 to your computer and use it in GitHub Desktop.
Save BHEADRICK/31f92ff190a5969db620acd377eee249 to your computer and use it in GitHub Desktop.
force SSL for wp - avoid too many redirects
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment