Skip to content

Instantly share code, notes, and snippets.

@itsbalamurali
Created September 3, 2013 06:38
Show Gist options
  • Save itsbalamurali/6420369 to your computer and use it in GitHub Desktop.
Save itsbalamurali/6420369 to your computer and use it in GitHub Desktop.
Force Secure (SSL) Pages With .htaccess
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://domain.com/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment