Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RahulSaini91/0cf290a9d4d90765a79fffcc0af42470 to your computer and use it in GitHub Desktop.
Save RahulSaini91/0cf290a9d4d90765a79fffcc0af42470 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment