Sumanth
Chevereto Member
Hi..i am using this .htaccess code redirect my subdomain to main domain.
Is it Right?
example:
subdomain1.maindomain.com to 404 page
subdomain2.maindomain.com to 404 page
Is it Right?
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^subdomain1.domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^subdomain2.domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^$
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ - [R=404,L]
example:
subdomain1.maindomain.com to 404 page
subdomain2.maindomain.com to 404 page