Domain & subdomain redirection with file/folder security !

Added By: sergeroz

(3 of 5) by 6.
Rate Snippet:
Description:  Do you have more than one [sub]domain pointed to your account? Do you want pageA.asp to be accessible ONLY from, and not from Do you want to only have to write 1 (yes, ONE) line of code in all your pages to implement this? Do you want to automatically redirect visitors, depending on the domain they're visiting? If you answered Yes to any of the above, then this fantastic solution is for you!
Language:  Visual Basic Script

Save to web space
E-mail Link

Code Snippet: