Skip to content

Instantly share code, notes, and snippets.

@rraallvv
Created May 25, 2017 00:03
Show Gist options
  • Save rraallvv/5318cf3765f357221503b8e2f39e09cb to your computer and use it in GitHub Desktop.
Save rraallvv/5318cf3765f357221503b8e2f39e09cb to your computer and use it in GitHub Desktop.
WordPress HTTP to HTTPS redirection
# BEGIN HTTPS Redirection
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# END HTTPS Redirection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment