Create 301 redirect: subdomains to root

isshmen

Junior Member
Joined
Jun 21, 2010
Messages
182
Reaction score
85
Hey, 301 pros.

So I just bought my first expired domain and planning to create a website on this domain.
There's lots of backlinks pointing to subdomains (sub1, sub2, sub3 etc) and their pages (sub1.main.com/nice-article)

What's the best way to do 301 redirect and "keep" the link juice?
I am not planning on (re)create articles on those subdomains/pages.

Thanks a lot.
 
I ain't no SEO guru but i would link back from those subdomains back to the main domain.
 
Best way would be to redirect on page by page basis.

sub1.main.com/nice-article
to:
main.com/sub1/nice-article

If you simply redirect to homepage you will get lots of soft 404.

Maybe what would work is redirect whole sub-domain to sub-folder like illustrated above.
 
I ain't no SEO guru but i would link back from those subdomains back to the main domain.
So you're sayin' to recreate the subdomains and redirect them to root?
What would the redirect htaccess code be? or through cpanel?

later edit: i don't want to keep those urls.
I only need their backlinks.
 
anyone can help me with a 301 redirect htaccess code?
 
still need help redirecting subdomain to domain.com/url
 
well, someone from namecheap helped me, but I'm not sure if this redirect method will get the link juice (backlinks pointing to subdomain).


so what de did:

1. created the sub.site.com subdomain (where SUB get those backlinks)

2. redirect in cPanel from sub.site.com to sub.site.com/^/(.*)$

3. adding this code in .htaccess uploaded on sub.site.com


Code:
RewriteEngine On

RedirectMatch 301 ^/(.*)$ https://site.com/sub



Is that good enough?

Thanks!
 
any advices, please?
i don't want to lose link juice.
 
Back
Top