Skip to content

Instantly share code, notes, and snippets.

@aurelian
Created September 14, 2009 20:48
Show Gist options
  • Select an option

  • Save aurelian/186920 to your computer and use it in GitHub Desktop.

Select an option

Save aurelian/186920 to your computer and use it in GitHub Desktop.
# match all for subdomains
<VirtualHost *>
ServerName example.com
ServerAlias *.example.com
RedirectMatch permanent (.+)$ http://example.com
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment