Skip to content

Instantly share code, notes, and snippets.

@tribulant
Created October 9, 2018 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tribulant/f906e05ec84ba12fe2f6fbcd16bdb909 to your computer and use it in GitHub Desktop.
Save tribulant/f906e05ec84ba12fe2f6fbcd16bdb909 to your computer and use it in GitHub Desktop.
SSL redirect specific folder
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} folder
RewriteRule ^(.*)$ https://www.yourdomain.com/folder/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment