Last active
December 16, 2018 21:28
-
-
Save iamchetanp/e6a53c08d159e8086106843357e3de19 to your computer and use it in GitHub Desktop.
Reditect rule for redirecting HTTP to HTTS (Apache) htaccess
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Redirect HTTP URLs to HTTPS | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) 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