Quote:
Originally Posted by pimpware
Setting up a 301 redirect with my .htaccess file would allow me to delete all stuff related with those blogs, even the sub-domains? Or do I have to keep the sub-domains active?
|
No, you don't have to keep them active.
Just a quick example:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^mydomain.com$ [NC]
RewriteRule ^(.*)$ http://mydomain.com/$1 [L,R=301]
This code would check that the address the visitor wants to access starts with mydomain.com. If not, let's say because the visitor wants to access mysubdomain.mydomain.com, there will be a 301 redirect to the main domain (mydomain.com).
This means no matter which sub-domains the visitor wants to accesss, there will always be a redirect to the main domain. Therefore, it doesn't matter if the sub-domains are active or not.
This solution is "quick and dirty" and only makes sense when you don't want to have new sub-domains in the future.