Skip to content

Instantly share code, notes, and snippets.

@regepan
Last active June 12, 2020 15:53
Show Gist options
  • Save regepan/24f1f2155032314f71fa2a22a461e548 to your computer and use it in GitHub Desktop.
Save regepan/24f1f2155032314f71fa2a22a461e548 to your computer and use it in GitHub Desktop.
# ssl redirect
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# redirect to other domain
RewriteEngine on
RewriteCond %{HTTP_HOST} ^aaa.com
RewriteRule ^(.*)$ https://bbb.com/$1 [R=301,L]
php_flag display_errors On
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment