PHP Redirection better than Nofollow?
-
Hello, if I have affiliate outbound links in my blogs, what's better in terms of SEO, to use PHP Redirection or Nofollow for those links?
For example, instead of using nofollow for the outbound affiliate links, I can use some plugin for WordPress that does this:
mydomain.com/affiliatesitename1 -> redirects to the affiliate link1.
mydomain.com/affiliatesitename2 -> redirects to the affiliate link2.
mydomain.com/affiliatesitename3 -> redirects to the affiliate link3.
Is this better?
Thanks.
-
Excellent points and advice, thanks everyone for answering.
-
Federico - Sure... if it does that as part of the plugin, then it should be good to go...
-
Hey Jeff, probably if there's a plugin designed to specifically redirect affiliate links I bet it already does a 302 redirect while suggesting to add the disallow in the robots.txt (or even adding itself).
-
My hunch is that if you use the method you just outlined, where:
mydomain.com/affiliatesitename1 -> redirects to the affiliate link1... you are essentially creating the equivalent of a followed, 301 redirect from your site to their site, and passing along link value as a result. It would appear to me that this would be a followed link. Depending on the number of redirects, a percentage of the link value may be lost as a result. But if that is what you would like to do, then go ahead and do so.
But a better practice would be to no-follow those links, as they are outbound affiliate links.
Hope this makes sense?
Thanks,
Jeff -
Both will actually have the same effect as long as you nofollow your affiliate links directly or the PHP script that does the redirection is disallowed via the robots.txt + makes a 302 redirect.
The downside of using nofollow is that you can't track the hits on those links from your end, but with PHP you can save that into a DB or any file.
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
-
Should my URLs with or without a slash? And how to avoid multiple redirects?
Moz, I am noticing that I need to go back and update my outbound links to your site. There are a lot of them because your content is so great and we love you guys. Could you explain your logic for making the change? Example on my Schema Markup Website Audits page: https://moz.com/blog/state-of-searcher-behavior-revealed/ redirected to: https://moz.com/blog/state-of-searcher-behavior-revealed
Link Building | | jessential0 -
How to make Form Type Links have "Nofollow" attributes
Hello guys, in doing an analysis of our website using SEMRush, we discovered that there are Form Type links from some of the business websites connected to our website with follow attributes. SEMRush has identified them as toxic backlinks. What is the proper HTML code structure for setting Form Type links with nofollow attributes?
Link Building | | Lovingly0 -
Redirects affect on page and domain authority
Hi - excuse me if this is stupid question but I'm rather new to this. Currently the PA for the home page is 16 and the DA 28 and I have some concerns that my efforts are being diluted. When I use OSE on www.sassandgrace.co.uk I get different link results to sassandgrace.co.uk but there is a redirect in place to sassandgrace.co.uk and cannot run a crawl report, for example, on www.sassandgrace.co.uk. The PA and DA are identical for each but the number of links different With a smallish number of links pointing to each but with a redirect in place, am I losing some of the effect or is having the redirect in place giving me all the credit for links to both addresses? Thanks
Link Building | | Sassandgrace0 -
Links from Directory Websites with NoFollow Tag
In reviewing our root domain links, I noticed that many of the directories (like Yellow Pages, Insider Pages, Merchant Circle, etc) that there are no follow codes included in the link to our website. Is this a common practice for these directories? Also, I wanted to confirm that this would not help in our link building strategies with any relevant "link juice." Below is a copy and pasted (with some extra characters that shouldn't have copy and pasted), but the key note here is the no follow tag that was included in this link to our site. Visit Website Thanks as always MOZ Community - cheers!
Link Building | | Leithmarketing0 -
Can I make a universal 301 redirect rule for my site?
I.e. I switch shopping carts and every page has the same path/name but now ends in .php instead of .htm.
Link Building | | absoauto0 -
Phone Call or Email Better
Hello, I had a Moz associate look at our niche, and he suggested using phone calls and emails for outreach. We are marketing an article that appeals to the humanitarian side of the organizations and companies we're contacting. We're contacting sites that are already listing useful articles. When you have the choice between a phone call or an email for outreach, which do you choose? The emails would be personalized, to a specific person when possible, and letting them know that we are a reciprocator by sharing across social channels and/or blog post commenting for them. The phone calls would be to the companies' general contact numbers. Which do you do first?
Link Building | | BobGW0 -
Will redirecting 250 linking domains to a new website from an old website freak Google out?
Prior to my accepting a project, the client decided to change the name of their company and purchased a new domain name to match. They hired a designer to build their new company site which has now been up and running for a little under 12 months. Up to this point they have done a good job of slowly redirecting small handfuls of linking domains from the old site to the new. They want to make one last push and point the remaining 250 linking domains from their old site to their new site. Will redirecting 250 linking domains to a new website from an old website freak Google out? If so, how many domains should be redirected at one time? My main concern is not wanting to upset Google and see the floor fall out on current keyword rankings, domain authority and page rank, etc.
Link Building | | 5outhpaw0 -
Does this redirect pass any juice?
Does this link pass link juice: http://www.finda.co.nz/redirect.php?listing_id=r2vp&url=http://www.avantifinance.co.nz
Link Building | | conradh1