Skip to content

Instantly share code, notes, and snippets.

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

  • Save evemilano/3c429172e95ddbe0edc9 to your computer and use it in GitHub Desktop.

Select an option

Save evemilano/3c429172e95ddbe0edc9 to your computer and use it in GitHub Desktop.
Impedire l'accesso alle cartelle
#Prevenire il caricamento di sottocartelle.
#Questo comando va inserito nel file .htaccess del dominio primario
RewriteCond %{HTTP_HOST} ^primary\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.primary\.com$
RewriteRule ^addon\.com\/?(.*)$ "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