Skip to content

Instantly share code, notes, and snippets.

@cipriantepes
Created June 15, 2017 21:06
Show Gist options
  • Save cipriantepes/926eb03a6c8bde5f989698234d6d9735 to your computer and use it in GitHub Desktop.
Save cipriantepes/926eb03a6c8bde5f989698234d6d9735 to your computer and use it in GitHub Desktop.
WordPress redirect to secure non-www
RewriteCond %{ENV:HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment