Skip to content

Instantly share code, notes, and snippets.

@MrityunjaiKumar
Created December 17, 2016 18:04
Show Gist options
  • Save MrityunjaiKumar/226079facfa04f03e7d3f369963342ff to your computer and use it in GitHub Desktop.
Save MrityunjaiKumar/226079facfa04f03e7d3f369963342ff to your computer and use it in GitHub Desktop.
ssl_apache.sh
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L]
</IfModule>
define('FORCE_SSL_ADMIN', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment