Skip to content

Instantly share code, notes, and snippets.

@tribulant tribulant/ssl
Created Oct 9, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.