Hi,
I had section on the site sub.domain.com. For years had run tens of thousands of news articles in it. However, we stopped publishing that topic a while ago. We recently moved the site and deleted most of the articles in it as rights ran out. Still a few our staff did, but not many. But a lot of search traffic and links to it and its articles.
I was looking to redirect the old sub.domain.com to domain.com but leave the likes of sub.domain.com/folder/ and sub.domain.com/folder/folder/article.html etc alone.
Is that possible? I thought it would be really spammy to redirect all the sub folders (which all have high rank and inbound) as they are specific things we don't cover anymore.
Thing is I was to delete the whole subdomain it would lead to people ending up on another site as name based. Is it a bad idea to redirect the subdomain at all? Its a big site and the subdomain has a lot of page rank and inbound links from newspapers, bbc etc. Its news.domain so figured OK to redirect that to our main page now.
I tried to do it with
RewriteEngine On
RedirectMatch %{HTTP_HOST} news\.sitename\.com$ [NC]
RewriteRule ^ http://www.sitename.com%{REQUEST_URI} [R=301,L,NE]
but that did not work.
Many thanks
James