Skip to content

Instantly share code, notes, and snippets.

@cerebrl
Created July 11, 2013 04:01
Show Gist options
  • Save cerebrl/5972435 to your computer and use it in GitHub Desktop.
Save cerebrl/5972435 to your computer and use it in GitHub Desktop.
Wordpress .htaccess Security
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://YOUR_DOMAIN.com/$1 [R=permanent]
# BEGIN WordPress
# END WordPress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment