Skip to content

Instantly share code, notes, and snippets.

@mejta
Created May 25, 2017 10:53
Show Gist options
  • Select an option

  • Save mejta/dc2493d50fad3ffbce5a7a6bd2365c20 to your computer and use it in GitHub Desktop.

Select an option

Save mejta/dc2493d50fad3ffbce5a7a6bd2365c20 to your computer and use it in GitHub Desktop.
RewriteCond %{HTTPS} !on
RewriteCond %{HTTP_HOST} p-lab\.cz$
RewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^p-lab\.cz$
RewriteRule .? https://www.%{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