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
-
Why are my total links to site going down but my average position keeps getting better on Webmaster?
Google Search Console says I have 141 Total Links. 2 months ago, I had 160 links. My average position went from 60.1 to 58.9.
Link Building | | guerratheron010 -
Better to place linked-back article or post article and seek multiple links?
Which option is better for SEO purposes: 1. Author article for trade journal in return for link back to my home page. 2. Post article on my site and solicit links from multiple sites. Assume links all have moderate authority.
Link Building | | Lysarden0 -
Subdomains, blogs and redirects, oh my!
Hello! We are currently hosting our blog on Medium which I would like to move away from. The options now are to host the blog with our custom CMS or use the HubSpot blog capabilities. I know their blog has built-in SEO best practices but I'm pretty sure it hosts the blog on a subdomain. I keep getting conflicting advice on this. In a whiteboard Friday Rand once said to NEVER host on a subdomain. But I know that google now associates links that redirect to the original site. I.e. If redpepperland.com redirects to repepper.land then redpepper.land should have all the link juice of redpepperland.com, right? But Moz doesn't recognize any inbound links to redpepper.land, I have to actually put redpepperland.com in as an additional site to see those links and the domain authority which worries me. So I guess two questions: 1. Does anyone have experience with Hubspot's blog? Will the subdomain hurt our SEO efforts? 2. Does google now know how to associate a redirect's link juice and domain authority to the page it redirects to? Not sure I know what I'm talking about at all but any help would be greatly appreciated!
Link Building | | redpepperland0 -
Backlink redirects and resulting SEO impact
Hi, Please see the target URLs on the links in this article: http://www.nextgov.com/technology-news/tech-insider/2015/07/government-hacked-yet-again-its-time-make-government-cybersecurity-national-issue/118561/ As you can see, there is a redirect in place, presumably for tracking purposes. Do these links carry full SEO value?
Link Building | | mikekeeper0 -
301 redirect of PR 6 domain to PR 1 site, Will it improve my site's seo?
I have a pagerank 1 website but i recently purchased one old pagerank 6 domain, if I 301 redirect this pr6 domain to my currrent pr1 site, will it will increase my site's pr and improve seo ?
Link Building | | IndiaFPS0 -
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 -
Tons and tons of nofollow links
Ahrefs is showing that I have 1,278 no follow links. Many of these are from a site that I'm totally unfamiliar with (growmap.com) and don't see any reference to my site on. Perhaps I left a comment on it at some point? But more than 800 of my nofollow links are from this site. Is this going to hurt me? Thanks. My url is http://www.farnorthkennel.com if curiosity comes about.
Link Building | | Joshlaska0 -
Better to redirect domain or to link from home page?
Hi, I have a niche directory and sometimes clients remove themselves because they have discontinued their business practice. If they sometimes provide me with their own website (as they will no longer use it either), is it wiser for me to: a) directly point their URL 301 to my own directory b) keep their website as is, and add a url link to my directory in their homepage c) keep their website as is, and add an anchored link with the industry keyword to my directory Thanks! D
Link Building | | Demosthenes0