Skip to content

Instantly share code, notes, and snippets.

@aletoropov
Created February 22, 2024 17:29
Show Gist options
  • Save aletoropov/225412cc049f1e8cdf433b01a791860f to your computer and use it in GitHub Desktop.
Save aletoropov/225412cc049f1e8cdf433b01a791860f to your computer and use it in GitHub Desktop.
Редирект с HTTP на HTTPS
# Редирект с 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