Created
January 27, 2015 13:41
-
-
Save evemilano/3c429172e95ddbe0edc9 to your computer and use it in GitHub Desktop.
Impedire l'accesso alle cartelle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.evemilano.com/2014/10/esempi-mod-rewrite-htaccess-apache/