somehow, this is more complicated then I thought...
i got this subdomain i want to 301 to my main domain
i.e. sub2.domain.com needs to 301 to domain.com
however, I no longer have the folder/subdomain sub2
lots of answers say " put a htaccess file in sub2 and 301 that way " but i no longer have that folder any more and do not want to make it. Why? because I have several of these folders/subdomains like this no longer on the server and I would not want to recreate all of them just to put one file in them and have them on the server forever just for a redirect.
is there a line of code I can put in the root htaccess to redirect all sub2.domain.com to domain.com for a 301 that actually works.
I cant seem to get anything to work.
i got this subdomain i want to 301 to my main domain
i.e. sub2.domain.com needs to 301 to domain.com
however, I no longer have the folder/subdomain sub2
lots of answers say " put a htaccess file in sub2 and 301 that way " but i no longer have that folder any more and do not want to make it. Why? because I have several of these folders/subdomains like this no longer on the server and I would not want to recreate all of them just to put one file in them and have them on the server forever just for a redirect.
is there a line of code I can put in the root htaccess to redirect all sub2.domain.com to domain.com for a 301 that actually works.
I cant seem to get anything to work.