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!
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
-
Fitness- china.com 301 Redirects
After I switched to 301, will the backlinks obtained by the previous domain name be transferred to the new URL? our Weight Machine new URL https://www.fitness-china.com/weight-machine
Link Building | | ahislop5740 -
Backlink Help - Contact Site Owners or 301 Redirect?
Hi, I am performing some backlink updates for a client and would like to know if I can speed the process up. Currently I am contact site owners and asking them to update the links that appear on their website of my clients. As this is tedious work, can I just setup 301 redirects for these products instead of contacting site owners and asking them to change the URL? Is there any benefit to having the proper URL on other websites? Thanks in advance!
Link Building | | KarenNelson0 -
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://mza.bundledseo.com/blog/state-of-searcher-behavior-revealed/ redirected to: https://mza.bundledseo.com/blog/state-of-searcher-behavior-revealed
Link Building | | jessential0 -
Linking out: Follow vs. Nofollow
When linking out to other sites, such as resources on .gov pages, should I use follow or nofollow links?
Link Building | | AHC_SEO0 -
Using a temp redirect or a link to another domain.
Helloooooooo (hey, we're in SEO...surely we need some sound effects as told in dramatic word elongation?) //First - background. I work on a site that does pretty well with search visibility naturally (by 'naturally', I mean it didn't need a lot of optimisation due to the relationships it has with its link network). I work on a site that sells a particular product - green widgets will do - as part of its verticals. Traffic to this section is great, and tends to convert rather well. These green widgets, however, are also part of another site that's part of the client I work for. The larger company was interested to understand what would happen to their conversions if these green widget visits were sent to them instead of staying on-site (namely, that's because they turn a bigger profit over there). So they set up a link on the page on my site to a landing page on theirs. Sure enough, conversions stayed the same on their site, and showed there may be value in keeping that flow active. //Second - question. I see a few options which mainly revolve around not changing anything, but the bigger part of company wants to see that change. My question is this: long term, should I keep the green widgets section of my site there, and use a link that goes to green widgets on the other site, or should I 302 it until they decide on what they want to do with the relationship between the sites? I know...a bit convoluted, but I'd love to get some ideas on what others have experienced in these situations, and what kinds of outcomes can help both sites remain strong. Thanks a ton, guys.
Link Building | | aroach0 -
301 redirect blog network to main site, good or bad?
Hi, Here is a newbie question. When we launched our web shop 18 months ago I started eight blogs on a different host with keyword rich domain names to get some links to the shop. Today I don't update them, but they have a lot of links to our shop and the blogs have something like DA 20 and PA 30-40. There are lots of links between the blogs as well. Can I do 301 redirects of the blogs/posts to the web shop to rank higher in the SERP for the keywords? If I do, what happens to the links from the blogs to the shop? Will the shop loose a lot of links, but gain in PA, DA, mR etc? Overall, would the shop/main site benefit from this? Or should I just leave the blogs and not mess with them? They don't have much traffic. I appreciate any input, thanks!
Link Building | | DanielSndstrm0 -
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 -
Follow or Nofollow outbound links to resourceful, related site?
As I am going through and redeveloping a website, I am trying to add some external links to resourceful information regarding this page. Should I put a nofollow or follow attribute on these? I am only putting 1-5 links per page to associations and other organizations that would be beneficial to the visitor. I am worried about the number of outbound links causing me to get penalized. Ideas?
Link Building | | TKIGWebTeam0