Find all affiliate links in a custom CMS
-
I have a custom CMS. I offer a few affiliate products through my site. Now I need to update all my aff. links and I'm not sure how I can find all the pages (posts) on my site that have affiliate links. What's the best way to do that?
-
.htaccess processes requests received by your webserver. It doesn't process HTML sent to the client, so it can't affect those affiliate links.
-
Hey,
As Jane mentioned - .htaccess can't change the HTML content of your pages, so you can't replace all the links that would be seen by a user or a browser.
If the links are via a redirection page on your site then you can use .htaccess to redirect those requests elsewhere, so when a user clicks a link it takes them somewhere else instead, but only if those pages are on your site.
Make sense?
Good luck!
-Tom
-
Hi Vince,
.htaccess can't change the HTML of the webpage, but I am not sure if it can rewrite outbound clicks. I'll reach out to other other contributors to see if anyone has a shortcut way of updating these links. I am seeing it mentioned online that you can do this, but I would like some verification from the team.
Cheers,
Jane
-
Afraid I can't help you with that one. Sorry!
-
Thanks guys, that makes sense. I'm doing what you suggested now. Once I find all my pages with affiliate links, is it possible to use .htaccess so that it requites those links automatically? Basically, it should go to a specific page, find the link I define, and change it to a new one. Is that even possible with .htaccess?
-
I would agree with Andy. Screaming Frog SEO Spider is a good tool for this. Just check all the "In Links" from the external urls you need to find on your site.
-
Probably the best way to track down all the pages, would be to use Screaming Frog Spider. Put in the URL and leave it to go.
The free version crawls up to 500 pages with the paid version being unlimited.
-Andy
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
-
URL with affiliate ID won't stop outranking our homepage. Time for nuclear option?
We have affiliate links applied to our index URL - https://playon.co - which are not picked up as a duplicate URLs by Google. We've applied a canonical URL, but our homepage is a 301 redirect to a page with a language parameter. So what happens is: https://playon.co/ goes to https://playon.co/en Affiliate links such as https://playon.co/#/?affiliate_token=1390448caccb7d go to https://playon.co/en#/?affiliate_token=1390448caccb7d This gets picked up as rel="canonical" href="https://playon.co/en" which I assumed marked it as a non-canonical page. Nonetheless, we keep seeing this affiliate "page" ranking - even above our own homepage for some terms. Worse, the affiliate URL also contains old cached information of the page. I don't even see how these SERP results should exist, because the affiliate link just ends up at the homepage (https://playon.co/en) My questions: What can we do to remove these affiliate URL versions of our homepage from being ranked? Google doesn't see anything after the hash in the indexed affiliate URLs. If we were to no-index our index URL (https://playon.co/) to completely remove the affiliates links, would our canonical version (https://playon.co/en) assume the top listing, or will we have effectively nuked our entire site? Appreciate any help.
Affiliate Marketing | | jmoreland0 -
Will GA Autotrack affect affiliate sites not using autotrack?
I want to add autotrack.js to affiliate quote forms hosted on my site. However, I do not know how it will affect affiliate websites (not associated with my quote forms, but with the same Google Analytics code, that do not use autotrack. I read that "Autotrack is not an official Google Analytics product and does not qualify for GA Premium". Will it harm my affiliates in any way to have autotrack on their quote form but not on their websites? It will have their GA website tracking number.
Affiliate Marketing | | RoxBrock0 -
Affiliate marketing: yes or no?
Hello, A colleague recently asked me about affiliate marketing for our clients, and my answer for a few years now has been emphatically "no", because I had not seen it done in positive way. How does everyone weigh in affiliate marketing, and what companies and/or software would you suggest? For example, is http://www.admedia.com/ a reputable source? I see lots of bad reviews on these guys. Any thoughts, suggestions, etc would be extremely valuable. Thanks in advance!
Affiliate Marketing | | lfrazer0 -
Tweeting affiliate links...?
I work in the music business & am published music producer. I'm an authority in my niche. Yada yada. I have a website that sells products to other music producers. I recently set up an affiliate partnership with someone who is also in the music business but on the management side. She is not an authority to my customers as far as music making goes. But she does have a huge following of people who are EXACTLY who I am targeting. She has been tweeting my affiliate links. The traffic has been great, but the purchase response has not been. I've had much better responses from reviewers and other music producers who have tweeted my links. I was just wondering if anyone had any tips for the most effective ways of tweeting affiliate links? Thanks!
Affiliate Marketing | | PedroAndJobu0 -
How to prevent affiliates from bringing negative SEO?
Hi there, I'm just about to integrate iDevAffiliate network for one of my sites, however it occurred to me that affiliates may (unfortunately) resort to black hat methods without me becoming aware of it, which could pass negative link juice to my site. Is there any way to use affiliate networks such as iDev without causing this problem? I was thinking of simply using a different URL, but the problem is that 301 redirects won't mitigate the issue. Thanks!
Affiliate Marketing | | freeunlocks0 -
Looking for a nice way to add an amazon affiliate store to my site
We are often asked what our favorite toys, books, resources, etc, are and I want to make a page(s) with our top resources that is a nice clean amazon affiliate store. Are there are good resources anyone knows of to do this? (I'm using a wordpress blog by the way....perhaps there is a plug in?) Thanks.
Affiliate Marketing | | NoahsDad0 -
How should I deal with the affiliate URLs we create through our affiliate program?
Our website offers an affiliate program and every affiliate gets a link http://www.ourwebsite.com/?affiliateID. Because we get many such links we use redirects to avoid duplicate content. Unfortunately we have 302 redirects set up and I want to make them 301. Many of our affiliates build backlinks using their http://www.ourwebsite.com/?affiliateID as the URL. If such links were redirected through a 301, would they pass any juice? Can our site get penalized by search engines for having backlinks to URLs that contain affiliate IDs, URLs that are 301 redirected to our homepage lets say?
Affiliate Marketing | | nick.leech0 -
Hiding Affiliate Links
Hello, Currently I'm developing a website that will contain a lot of affiliate links (5000). This is because I'm going to compare the prices of a lot of products. The visitor can go to all websites (my advertisers) that sell these products via affiliate links. My question is how to hide these affiliate links. I've read lots of solutions, like: cloaking, rel=nofollow, using JavaScript, 301 redirects. I would like to know what the best solution is to deal with these affiliate links for SEO. Regards, Martijn
Affiliate Marketing | | MartijnWijbenga290