Created
March 12, 2018 14:32
-
-
Save douglascabral/3d388dc8bc32dc1e5b4758c8fd39b59d to your computer and use it in GitHub Desktop.
Apache2 Redirect
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
<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