Created
December 7, 2018 17:37
-
-
Save ewingson/ecc55f01c139d98037da4c58a6095229 to your computer and use it in GitHub Desktop.
htaccess_rewrite_condition_force_nonwww_force_https_!
This file contains 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
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://www.blahblah.com/$1 [R,L] | |
RewriteCond %{HTTP_HOST} ^www\.blahblah\.com [NC] | |
RewriteRule ^(.*)$ https://blahblah.com/$1 [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment