Skip to content

Instantly share code, notes, and snippets.

@douglascabral
Created March 12, 2018 14:32
Show Gist options
  • Save douglascabral/3d388dc8bc32dc1e5b4758c8fd39b59d to your computer and use it in GitHub Desktop.
Save douglascabral/3d388dc8bc32dc1e5b4758c8fd39b59d to your computer and use it in GitHub Desktop.
Apache2 Redirect
<VirtualHost *:80>
ServerName domain1.com
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
RedirectMatch ^/(.*)$ https://domain2.com/$1
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment