by
546 12
0
4
363k
0
Top 1% !
Popular
Pearl of Wisdom
Specified
Popularity: 2519th place

Published on:

No tags for this snippet yet.
LanguageApacheConf
SourceGitHub

second level domain trick

second level domain trick: 
.htaccess
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/990403/second-level-domain-trick?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
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]
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus