Skip to content

Instantly share code, notes, and snippets.

@mskian
Created March 10, 2016 03:59
Show Gist options
  • Save mskian/44f2f833840cc8ff0a3c to your computer and use it in GitHub Desktop.
Save mskian/44f2f833840cc8ff0a3c to your computer and use it in GitHub Desktop.
htaccess code for activating an SSL for Specific Folder (Example - Payment Gateway Link)
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} folder
RewriteRule ^(.*)$ https://www.example.com/folder/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment