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
-
301 redirect single page
I have a popular page on one domain and I did 301 redirect of it to another domain. Just one single page. Both the sites are very related to each other. Will the backlinks get transferred? Its been more than a week but nothing shows up in webmaster tools.
Link Building | | anran0 -
Is it better to have micro-sites with good content or redirect domains?
I have a domain with a lot of content and it is an eCommerce site. I've just been told that we have another 12 domains that are inactive and do not redirect. I don't know what to do with them as they haven't been used for ages and do not direct or have any content (max of a DA or 4). Therefore which is better for SEO? To have really good content with perhaps a few regular blog posts on each of the 12 domains, or to redirect all of the domains to the one main domain? I would take 1 domain and put a lot of content on and optimise is.. spending a few weeks on one and then move onto another, all while posting on each blog on each domain. Thank you for any help! 🙂
Link Building | | schloeee0 -
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 -
Brand new website, should I nofollow almost all internal links?
Hi, As I am creating a completely new website for my employer (she will have zero incoming links, even the URL will be different), would it be advantageous to allow follows to the other internal pages from the home page, but disallow follows on all other internal links on each subsequent page? So, for example each page will have this many internal links: Home page: 5 (all 5 service pages) Recruiting: 1 (home link) Services: 1 (home link) Talent Assessment: 1 (home link) etc. Does this make sense to bolster the home page until we can get some links coming in?
Link Building | | wlw20090 -
Redirecting a penalized domain to a new one to remove penalty?
I've got this website that has been hit quite hard by the first Penguin update round. Would it be better to move all my content to another domain and do a 301 redirect? Or should I keep the penalized domain and try to clean up the bad link profile? Also I must say that the website has been hacked last fall and the hacker was able to upload porn stuff in one of the folders. Needless to say, I quickly acquired tons of links from porn and warez. And no, porn and warez has nothing to do with my website's topic. Thank you for your help! Stephane
Link Building | | sbrault740 -
Value of Link Redirect from Google News
Some sites are linking to us with the URL from Google News instead of using a direct link. For example: "http://news.google.com/news/url?sa=t&fd=R&usg=ghjgjhggjhgkjghjg&url=http://www.oursite.com/awesome-news-010123/" Does this pass the same value as a normal link? I asked the publisher to replace the link with a normal link but they pushed back saying that the news URL is better.
Link Building | | ProjectLabs0 -
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 -
Are 36 links from one site to nested pages better than one link to the root domain?
I have a Driving School website www.1stclassdriving.co.uk. The site is structured geographically with 36 area pages, one
Link Building | | Brian_Worger
page per area post code and one page per Driving Instructor. I am trying to develop links and have found a site (da91 pa
63) where I can create area links to each of my area pages if I
wish. Is it best to just create one link to the root page or
should I create 36 individual links to each area page? - which is most valuable?0