Skip to content

Instantly share code, notes, and snippets.

Created May 7, 2013 22:46
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 anonymous/a22d054a4730a00218b4 to your computer and use it in GitHub Desktop.
Save anonymous/a22d054a4730a00218b4 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^/[^www]/.[^.]+\.site\.com$ [NC]
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+\.site\.com$ [NC]
RewriteRule ^(.*)$ http://site.com/$1 [R=404,L,R]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment