Created
January 27, 2015 13:42
-
-
Save evemilano/2bb139f3121c70fc4624 to your computer and use it in GitHub Desktop.
Impedire l'accesso ai sotto-domini
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 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] |
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/