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
-
Very old site wanting a revamp - how to handle all the redirects/URL changes
Hi all, I have a very very old site, that requires a facelift (going from an old clunky CMS to wordpress). A problem I know I am going to face is that this site has a very poor URL structure (www.site.com/section/1/section/ etc) which I plan on cleaning up. but how do I handle the 100+ backlinks this website has point to such links? If someone could point me in the direction of an article or such that would be great. Thanks,
Link Building | | Greenroads0 -
Redirecting broken backlink to my site
Hello guys, I found an expired domain with inbound links from 41 different root domains, almost all of them from relevant sources. I have 2 ideas in my mind: A) I am thinking about buying this expired domain and place a 301 redirect to a post in my blog who talks about a similar subject.Relevance: let's say the content of the expired domain is about "horses wallpapers" and the content of my site is about "horse transport". Not the same, but a post in my blog could talk about "top 10 horse wallpapers". Do you see what I mean? B) Contact all the webmasters with broken links, alert them and expect they are nice and place a nice link to the post in my blog talking about "top 10 horse wallpapers". What do you think? Should I take A or B? Any other idea? I added a picture with the Domain Rank of the broken links 🙂 Thanks a lot !!! Luis V1LZBC3
Link Building | | Yeeply.com0 -
Should I ask sites that link to me to update links that redirect?
I have found some links to my site that go through a single 301 redirect to get to my site. Should I contact these websites to ask them to update the link, or is that not worth the time?
Link Building | | RCF0 -
Penalty? NoFollowed Link Profile
Could an abnormal ratio of nofollow links cause a drop in rankings? Our "Followed Linking Root Domains vs. NoFollowed Linking Root Domains" is 50/50... while our competitors have an average ratio of 90/10. The reason for our abnormal ratio is that: A) We're a relatively new site, with a small link profile so far. B) We have a WordPress plugin that allows other publishers to add our content to their site (which has a nofollow backlink included). And, as a followup question... if we removed the nofollow backlink completely, but still left the branded text there... could we potentially still benefit from it (our brand name being near targeted keywords that appear in the plugin content)?
Link Building | | JABacchetta0 -
Outbound Links as References - use nofollow or not?
Hey People 🙂 We run an ecommerce site and we research and wrote articles on health topics , and we post the references on the articles in posts ( Magento site / Wordpress for articles ) Should I be putting rel=nofollow in the outbound links or not? I have read a few different posts but none seem to definitively fit my situation. Kind Regards
Link Building | | s_EOgi_Bear
Martin0 -
Same Page, Multiple URLS- Canonical tag? Redirect?
I just read this article about how google views multiple versions of the same page as different pages of duplicate content. My website, www.telikin.com currently has many versions of the home page. There is: www.telikin.com
Link Building | | Telikin
www.telikin.com/index
www.telikin.com/index.php
www.telikin.com/index.php/ All of these seem to be their own URLS, If i use the open site explorer tool to search for links pointing to these URLS, the www.telikin.com domain shows about 700 links, and the www.telikin.com/index.php shows about 63 links. My questions: Is my SEO suffering as a result of having these different pages? Does google realize that links pointing to www.telikin.com/index.php should count towards the seo of the www.telikin.com page? If this is hurting my company's website, how do I solve this problem? I am not versed as a webmaster, so I don't understand what the best course of action would be. Should I request that our webmaster somehow redirects all traffic from the other URLS to the main www.telikin.com URL? Should I be using canonical tags on all important pages? If i do, for example, use a canonical tag on the www.telikin.com page, will Google then know to send all link juice from the www.telikin.com/index.php page to the www.telikin.com page? We also have a Joomla blog that seems to duplicate pages many times over, but that is a problem that I will have to address another time. Any comments/suggestions are more than welcome. Thanks, Dave0 -
Redirecting a previously expired domain - any SEO benefits?
Is there any SEO benefits from registering a previously expired domain name that is still linked to form an authorative source and 301 redirecting it to another site on a similar subject? Obviously first benefit is giving users who are clicking on the link to be sent to a site on a similar subject that just to a dead link.
Link Building | | Wardy0 -
Nofollow advertisers with high value sites
A site with a high PA/DA links to all of their advertisers on their home page using nofollow. The advertisers generally have high quality sites and none of them are spammy. Having read this forum for the past couple months, it is my understanding that nofollow should be used to control spam links, and is commonly used in the forum section where site owners can not control or vouch for the outgoing links. However, as I understand the topic, there is no benefit to using nofollow for high value sites for which you can recommend, and in particular, when the site is receiving money from the advertisers. The link juice is divided by all the links on the page, both follow and nofollow, and the juice for the nofollow is discarded. I ask this question because we are one of the advertisers on the site. I want to contact them about this issue, and request that they remove the nofollow from the advertiser links. Comments? Best,
Link Building | | ChristopherGlaeser
Christopher0