Created
August 1, 2018 15:06
-
-
Save nkarpeev/8bfed412fd4743324fda13c337c49a6f to your computer and use it in GitHub Desktop.
redirect http -> https (modx, beget host)
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
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteRule ^(.*)$ https://domain.ru/$1 [R=301,L] | |
# Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin | |
RewriteCond %{HTTP_HOST} . | |
RewriteCond %{HTTP_HOST} !^domain\.ru [NC] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment