Skip to content

Instantly share code, notes, and snippets.

@r1w1s1
Created May 8, 2016 03:37
Show Gist options
  • Save r1w1s1/7d72ce359b01b867663404d6a1e72465 to your computer and use it in GitHub Desktop.
Save r1w1s1/7d72ce359b01b867663404d6a1e72465 to your computer and use it in GitHub Desktop.

#Redirecting to SSL using Apache’s htaccess

Just edit the .htacess file and add the below lines.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ http://www.test.com/$1 [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment