Created
February 22, 2024 17:29
-
-
Save aletoropov/225412cc049f1e8cdf433b01a791860f to your computer and use it in GitHub Desktop.
Редирект с HTTP на 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
# Редирект с http на https | |
RewriteEngine On | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L] | |
# Конец редиректа |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment