Forum Moderators: open

Message Too Old, No Replies

Redirecting an old subdomain to the main site

         

tapupart77

2:17 pm on Feb 7, 2023 (gmt 0)

Top Contributors Of The Month



Hello All,

Thank you for having me.

We are getting rid of Hubspot (info.domain.com) and have about 150 blogs over there, that are basically duplicated recently on the main site in Wordpress (domain.com)

Some of those pages DO rank, but there is duplicate content.

In the past I created a HTML file to redirect to another website, which is actually working real well because I disavow any bad links, and keep the good links to the old site, so I can throttle what links are coming in on the old site site that redirects to the new site. It worked.

But in this case there are about 150 blogs that are basically on the new site, so I don't know if I want to redirect the WHOLE subdomain to the main domain.

What would you all do. Sorry if I am vague, please let me know if you have questions.

I appreciate your feedback.

Thanks.

lucy24

5:02 pm on Feb 7, 2023 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Generic answer: Any time something can be reached at more than one URL, pick one and redirect to it.

tapupart77

9:04 pm on Feb 7, 2023 (gmt 0)

Top Contributors Of The Month



Thank you Lucy. I get it, LOL.

But the problem is the bad links to the subdomain that will redirect to the main website, there are maybe 60 or so. It will pass those along redirecting the whole domain.

phranque

12:39 am on Feb 8, 2023 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



i would only suggest doing this if you are redirecting individual urls from the 150 subdomains to the equivalent and relevant new url on the main hostname.
if your "bad" inbound links are directed to a small number of urls on the subdomains, perhaps you shouldn't implement redirects for those urls.
otherwise, you should deal with the "bad" inbound links at the source, either by having them removed or by disallowing.

as far as technical implementation, you could configure a virtual host that accepts requests for wildcard subdomains.
these requests could be internally rewritten to a script that verifies the validity of the requested url (hostname and url path) and redirects valid requests to the appropriate url on the main hostname, while responding with a 404 (or other, as appropriate) status code for invalid url requests.

tangor

6:33 am on Feb 8, 2023 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



@tapupart77 ... Welcome to Webmasterworld!

A general 301 (chasing link juice) might not give the results desired. However, if you have SOME pages on the old site that still rank positively, then by all means, redirect to the current (new) url where appropriate.