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
-
slug Link redirect to subdomain?
Hi !
Link Building | | Leviiii
Im Levi new here and new in the world of SEO, please dont judge if my questions are silly. Back on the days when the site was built we thought it is a good ideea to have subdomains that together with the domain name represent our main keywords.
ex. https://stansted.tonorwich.uk, https://heathrow.tonorwich.uk, https://luton.tonorwich.uk, https://gatwick.tonorwich.uk. There is content on this subdomains, would it make any difference from SEO perspective if we create slugs that redirect to these subdomains? for example creating https://tonorwich.uk/taxi-minibus-vip-tesla-norwich-to-stansted that redirects to https://stansted.tonorwich.uk ? Or better create these slugs with slightly different content?
Any ideeas would be appreciated.
Thanks in advance!0 -
Having some problems with understanding how to properly use anchor text for my keywords' better rankings. Please help!
Hello, Last week I did some work on my website's inner pages linking and some of my highly ranking keywords fell down as a result. I guess I did something wrong, please help me figure out what exactly was wrong! Here is the example of what I did. I put a link to the page that ranks for 'Thermador repair Brentwood' here: http://www.ifixappliancesla.com/blog/2016/09/12/appliance-repair-brentwood/ I put exactly same anchor text, 'Thermador repair Brentwood'. For my blog posts, I use Yoast plugin, so when adding the link, I received the message "You are linking to another page with the focus word you want this page rank for. Consider changing that if you truly want this page to rank." While this one's ranking, 'Thermador repair Brentwood', didn't fall down, others did. Could you please confirm if my understanding is right and I'd better not use the same keywords on two or more pages? If yes, what is the best practice for linking to the pages that are not in the main menu? Let's say, I decided to do blog posts for the areas my appliance repair company serves and to optimize those pages for respective keywords. So, I have pages like "Appliance Repair Service in Brentwood" (which is optimized for "appliance repair brentwood" keyword), "Appliance Repair Service in Beverly Hills" ("appliance repair beverly hills" keyword), etc. I thought that the best way to link to them is to put the same anchor texts: "appliance repair beverly hills", etc. But it looks like the best way would be to use the anchor texts like "Beverly Hills", "appliance servicemen in Beverly Hills". Please tell me if I am right? Any explanation, advise or referral would be much appreciated! Thank you!
Link Building | | kirupa0 -
Does google will see this has a 301 permanent redirect and will penalized my website?
Hi, I got a website that have a lot of information on job posting. The domain name will be new but i just want to redirect all of the old single job pages (around 300 pages). To the new domain pages but keep the old domain because it's already been indexed by google. The design will change but the content will kinda be the same. Is this a good approach? Does google will see this has a 301 permanent redirect and will penalized my website? Thanks alot
Link Building | | bigrat950 -
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 -
I'm thinking about buying a competitor and 301 redirecting? How much SEO value?
I'm thinking about buying a competitor and 301 redirecting their site to mine. The high level stats are as follows. My site has a DA of 46 and the homepage has a PA of 55. 375 root domains, 170,000 links. The site sells millions of dollars worth of product each year. The competitor (who I had never heard of) has a DA of 58 and a homepage PA of 64. They have 634 root domains and 260,000 links. They aren't selling much of anything (less than 100,000 per year). We might be able to operate their site but I'm concerned about maintaining 2 platforms. My question is about the value of buying this site and 301 redirecting it to my site. Would this create long term SEO value or not? Any examples that have been documented are greatly appreciated.
Link Building | | bradwayland0 -
Are .edu links really better?
Getting .edu links seems to be the Holy Grail for many SEOs and link builder. I understand how difficult it can be to get a link from a .edu domain that happens to cover topics in your industry. What I am wondering is, has there been any studies/tests to determine if .edu links are more powerful that a link from a trusted/relavant .com? All things being equal (DA, PA, etc.), is the .edu better? What if the .com has slightly better metrics, is the .edu still better for SEO? I haven't been able to find any expert blog posts about the added value.
Link Building | | inhouseseo1 -
Is it good practise to do a 301 redirect from domain.co.uk to www.domain.co.uk?
As the title says really, I'm sure the answer is Yes, but I cannot remember why probably one of the many things I read somewhere along the line and can't recall the reasoning can anyone enlighten me please?
Link Building | | RankStealer0 -
Backllinks to our site but via redirect (still SEO helpful?)
Hi, A large website may link to us but via their internal redirect mechanism. So it would be somthing like this: [If you select the link, it eventually goes to our site but not from the original page. These links would be placed on lots of pages, but since they would all "pass through" the "redirect" page, it seems not as beneficial from an SEO perspective. Is this reasoning correct? Would google still follow the link and see where it ends up, even though it is via multiple pages? Ideally I'd prefer direct link but how much better is it than the redirect as listed above?](/redirect/rd?site=www.oursite.com/page&trackingparam=111111)
Link Building | | NicB10