Created
January 11, 2016 19:11
-
-
Save afelicioni/493c9fbee20fb729f0f0 to your computer and use it in GitHub Desktop.
second level domain trick
This file contains 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
RewriteEngine On | |
Options +FollowSymlinks | |
RewriteBase / | |
#RewriteCond %{HTTP_HOST} !www.dns.it | |
#RewriteCond %{HTTP_HOST} (.*).dns.it | |
#RewriteRule ^(.*)$ %1/$1 | |
RewriteCond %{HTTP_HOST} whois.dns.it | |
RewriteCond %{REQUEST_URI} !_whois/ | |
RewriteRule ^(.*)$ _whois/$1 [L] | |
RewriteCond %{HTTP_HOST} tld-info.dns.it | |
RewriteCond %{REQUEST_URI} !_tld-info/ | |
RewriteRule ^(.*)$ _tld-info/$1 [L] | |
RewriteCond %{HTTP_HOST} tld.dns.it | |
RewriteCond %{REQUEST_URI} !_tld-info/ | |
RewriteRule ^(.*)$ _tld-info/$1 [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment