Skip to content

Instantly share code, notes, and snippets.

@deepakaryan1988
Created November 27, 2014 14:06
Show Gist options
  • Save deepakaryan1988/6280b512923cd57fc0de to your computer and use it in GitHub Desktop.
Save deepakaryan1988/6280b512923cd57fc0de to your computer and use it in GitHub Desktop.
Redirect all traffic to https from http
Ref:- https://www.ndchost.com/wiki/apache/redirect-http-to-https
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment