Skip to content

Instantly share code, notes, and snippets.

@smtechno
Created November 13, 2020 10:26
Show Gist options
  • Save smtechno/cef203ee5d0008f2413902c124c9a4d9 to your computer and use it in GitHub Desktop.
Save smtechno/cef203ee5d0008f2413902c124c9a4d9 to your computer and use it in GitHub Desktop.
Forcing HTTPS on a Specific Folder
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(folder1|folder2|folder3) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment