Created
December 24, 2014 08:00
-
-
Save johonunu/d840c1a0e8e2c37e3ba0 to your computer and use it in GitHub Desktop.
REDIRECT VIRTUALHOST TO ANOTHER 301
This file contains hidden or 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 long-domain-name.example.com:80> | |
| ServerAlias long-domain-name.example.com | |
| DocumentRoot "/var/www/html/example.com" | |
| <Directory "/var/www/html/example.com"> | |
| allow from all | |
| Options +Indexes | |
| </Directory> | |
| </VirtualHost> | |
| <VirtualHost short.example.com:80> | |
| ServerName short.example.com | |
| Redirect 301 / http://long-domain-name.example.com/ | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment