Skip to content

Instantly share code, notes, and snippets.

@janikvonrotz
Created November 15, 2013 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janikvonrotz/7481550 to your computer and use it in GitHub Desktop.
Save janikvonrotz/7481550 to your computer and use it in GitHub Desktop.
Apache: Virtual Host Permanent Redirect #Apache
<VirtualHost *:80>
ServerName domain.ch
ServerAlias www.domain.ch
ServerAdmin webmaster@domain.ch
ErrorLog /var/log/apache2/domain.ch-error.log
CustomLog /var/log/apache2/domain.ch-access.log combined
Redirect permanent / http://www.somewhere.ch/aktuell/whatever/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment