Skip to content

Instantly share code, notes, and snippets.

@evemilano
Created January 27, 2015 13:42
Show Gist options
  • Select an option

  • Save evemilano/2bb139f3121c70fc4624 to your computer and use it in GitHub Desktop.

Select an option

Save evemilano/2bb139f3121c70fc4624 to your computer and use it in GitHub Desktop.
Impedire l'accesso ai sotto-domini
#Prevenire il caricamento del sottodominio.
#Questo comando va inserito nel file .htaccess del dominio primario
RewriteCond %{HTTP_HOST} ^subname\.primary\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.subname\.primary\.com$
RewriteRule ^(.*)$ "http\:\/\/www\.addon\.com\/$1" [R=301,L]
@evemilano
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment