Page tree
Skip to end of metadata
Go to start of metadata

This article contains information about stopping people from being able to access your subdomain address.


Put this in the .htaccess file located at the subdomains folder:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^subdomain.domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.subdomain.domain.com$
RewriteRule .* http://otherdomain.com/ [r]

There is no content with the specified labels