Knowledgebase

Back to Tools and Features

Stop People From Using A Subdomain To Access An Addon Domain


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


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

RewriteEngine On

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


Related Articles

How To Create And Download A Backup
How To Delete Your Content
Can I Add My Own CGI Scripts
Do I Use Localhost or RemoteMYSQLhost For A MYSQL connection
How To Backup My Site

Can’t Find what you need?

No worries, Our experts are here to help.