Skip to content

Instantly share code, notes, and snippets.

@tribulant
Created October 9, 2018 11:16
Show Gist options
  • Save tribulant/c11754417f6e6faaf293ae1a9780774f to your computer and use it in GitHub Desktop.
Save tribulant/c11754417f6e6faaf293ae1a9780774f to your computer and use it in GitHub Desktop.
SSL redirect specific domain
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment