Best Approach to Redirect One Domain to Another
-
So I'm about to migrate one domain to another. Lets say I'm migrating boo.com to foo.com. Boo.com has good organic traffic & has some really well ranked pages. For this reason (I think) I want to send that traffic to some where other than the foo.com homepage. Perhaps a catered landing page. My question is can I redirect some of the specific pages on boo.com to a landing page on foo.com & then redirect the delta to foo.com's homepage? Or am a risking not fully transferring the full credit of one domain to another if I take that approach & therefore I should just redirect one domain to the other in its entirety?
Thanks,
Rich
-
Hi Rich,
Elaborating on FedeEinhorn’s answer, if the page structure is the same you could just redirect all requests to the same URI on your new domain, as he stated. You could do this very easily with a .htaccess file on the root folder of your old domain (providing you’re running an apache webserver like most people). To redirect using regular expressions and capture groups we can use the RedirectMatch directive, which would look like this:
RedirectMatch 301 ^(.*)$ http://www.newsite.com$1
As simple as that, you’ve redirected all existing pages to the same page on the new domain. If you haven't used this before, here's a brief look at how that works for you:
Firstly, RedirectMatch simply tells apache we’re using the RedirectMatch directive from mod_alias.
301 specifies a 301 SEO friendly redirect which passes all that lovely SEO juice to your new site.
^(.*)$ is our regular expression. It states, from the start of the requested URI (^) start capturing the request (using the brackets to show what we want to capture), capture it all (with . meaning any character or symbol and the * meaning 0 or more of the preceding . , which will lead to everything being caught by our capture group (the brackets). And the $ meaning the end of the requested URI.
The final part of this redirect is specifying the page to redirect to, but as we have captured the request in the previous part, we use $1 to append our first capture (only capture in this distance) to the end of our new domain.
If you have completely changed your site, you may wish to redirect all requests to your homepage or another page, it is as easy as modifying the previous code to redirect without appending our capture to the end of your redirection target, so this would be acceptable:
RedirectMatch 301 ^(.*)$ http://www.newsite.com
But since we don’t need to use anything from the requested URI, we should really remove the brackets (the capture group) for the sake of tidiness, resulting in:
RedirectMatch 301 ^.*$ http://www.newsite.com
You could use a mixture of these 2 code, for instance if your blog posts are all identical but your main site pages have all changed - this code would redirect all pages starting with /blog/ to their double on the new domain, but redirect all other pages to a /we-have-moved/ landing page:
RedirectMatch 301 ^(/blog/.*)$ http://www.newsite.com$1
RedirectMatch 301 ^.*$ http://www.newsite.com/we-have-moved/
Hope that's useful,
Tom
-
Hmm... my best guess is that if the content remains the same, that means that you have the same contents on boo.com and foo.com, then just simply do a page by page redirection, that will carry as many value as possible to the new pages.
However, you if you do not have the same pages available on both domains, then there are a couple of things you can do:
- Not the exact same content on the new domain: redirect to what you think is the best match.
- No similar content on the new domain:
- Option 1: Redirect to a page (sort of a landing page) showing similar pages that the user might be interested in.
- Option 2: Redirect to a landing page or homepage.
Hope that helps!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
301 redirects cross domains
Hi Moz Community. We have a client that has Website A and Website B. Website A is going to be replaced by Website C, a new website and brand. Some products sold on Website A are going to be split out to Website B & C. i.e. Say Website A sells eight products - then four will go to Website B and four to Website C. OUR QUESTION Technically we know we can 301 redirect the Website A products to the relevant Website B & Website C products. 1. Given this convoluted structure, will there be any negative ramifications for SEO? and; 2. Which website would you redirect the homepage to, B or C?
Intermediate & Advanced SEO | | WCR0 -
Is there any ranking benefit to buying and redirecting high PageRank domains?
Hello, I'm interested in learning how to assume ownership of a site without Google resetting the PageRank and the links back to zero. I've read that buying sites is one of the most powerful SEO "shortcuts" you can employ, but can be tricky. I've heard that, unfortunately, buying an existing domain and 301 redirecting for SEO credit is not that simple. When the WHOIS registration information on the newly purchased domain is updated to reflect its transfer to you, the new owner, that domain will almost immediately be reset by Google to a PageRank=0. That's the standard practice when a domain changes hands. Since Google is a domain registrar, obviously, change of ownership information is readily available for their use in factoring it into their algorithms. If you decide to 301 redirect the new domain to another domain you already own, you will get credit for the site's current incoming link profile, at least in the short-term. However, this purchased domain will eventually reset to PR=0 (usually during the next PageRank update) AND you will then get no credit for all of those links post-transfer. What is your experience with buying and redirecting domains?
Intermediate & Advanced SEO | | Choice0 -
Help with Best Content Posting Approach - WordPress site
I have a word document that i would like to add to my wordpress site as a page. The document has a large detailed flow chart of a complex legal process. (about 20+ boxes in the flow chart). I do not want to add it as an image because i want search engines to read/index the information in the flow chart. any suggestions to post this detailed flow chart on a WP page in the best SEO manner? Thanks.
Intermediate & Advanced SEO | | CamiloSC0 -
Redirect ruined domain to new domain without passing link juice
A new client has a domain which has been hammered by bad links, updates etc and it's basically on its arse because of previous SEO guys. They have various domains for their business (brand.com, brand.co.uk) and want to use a fresh domain and take it from there. Their current domain is brand.com (the ruined one). They're not bothered about the rankings for brand.com but they want to redirect brand.com to brand.co.uk so that previous clients can find them easily. Would a 302 redirect work for this? I don't want to set up a 301 redirect as I don't want any of the crappy links pointing across. Thanks!
Intermediate & Advanced SEO | | jasonwdexter0 -
Microsite as a stand-alone site under one domain and sub-domained under another: duplicate content penalty?
We developed and maintain a microsite (example: www.coolprograms.org) for a non-profit that lives outside their main domain name (www.nonprofit-mainsite.org) and features content related to a particular offering of theirs. They are utilizing a Google Grant to run AdWords campaigns related to awareness. They currently drive traffic from the AdWords campaigns to both the microsite (www.coolprograms.org) and their main site (www.nonprofit-mainsite.org). Google recently announced a change in their policy regarding what domains a Google Grant recipient can send traffic to via AdWords: https://support.google.com/nonprofits/answer/1657899?hl=en. The ads must all resolve to one root domain name (nonprofit-mainsite.org). If we were to subdomain the microsite (example: coolprograms.nonprofit-mainsite.org) and keep serving the same content via the microsite domain (www.coolprograms.org) is there a risk of being penalized for duplicate content? Are there other things we should be considering?
Intermediate & Advanced SEO | | marketing-iq0 -
Complementary Domain
Hi guys, I have the following situation I would like some help. Because my client is in Brazil, I will make up fictional names so it's easier to understand. My client is a shoe store whose domain is mangabeira.com. That is the brand name and will always be the main domain and reference of the website. We were offered the domain shoes.com. There is no intention of changing the brand name or anything, but there would be a redirect that would send the user who to mangabeira.com. My question is how much impact would that complementary domain do to my SEO performance and how that redirect must be handled. Thanks.
Intermediate & Advanced SEO | | LucasLopes0 -
Does it make sense to combine multiple news sites under one domain?
My company operates multiple news site brands across several markets and typically operates one website per market/brand. We've been advised that in the case of one of the newer markets, where each brand might only be publishing 3 articles a week, that combining all that market's brands under one domain will drive higher traffic from search because Google values higher article flow. Getting this done will be a lot of work. Is the juice worth the squeeze? And assuming we get the UX right and execute 301 redirects correctly, are there major risks to search traffic?
Intermediate & Advanced SEO | | AlecD0 -
Move webshop domain to the brand domain?
Hello, A client of mine has a brand with a website for over 10 years now.
Intermediate & Advanced SEO | | Seeders
About 4 years ago the have opened a webshop on an other domain (like www.brandnamewebshop.com). At this moment the brand domain has a seomoz authority of 45.
The webshop domain authority is 25. The question:
Would it not be better to transfer the webshop to the brand domain because of the domain authority? If so, how can this be done the best way? With a 301?
I also think: what a loss of energy of building the authority on the other domain.
Is it an idea to use both domains for a webshop and rewrite the content? Or is there an other way to still make use of the built up domain authority? Would it really help the other domain when I make a 301 redirect (and make use of the pointing links to the webshop domain?). I hope somebody have some experience with this...
Looking forward to the possibilities! Gerjan0