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 -
Is Affiliate Duplicate Content?
Hi moz fans!
Affiliate Marketing | | KasperK
I'm working on some client sites.
They have a lot of products, which they are selling through their webshop and two affiliate sites.
But I can't stop wondering:
The affilate sites are using the same product descriptions and images - Will Google see that as duplicate content?
And if so.. How can I prevent that? The two affiliate sites are well etablished and huge sites, so I guess they know what they are doing.. Is there some way I can check it? When I do a google search, whit the "My product description text", I'm getting some different results: Sometimes all three sites appear (main site, and affilate) Sometimes it's only the affilates Sometimes it's only the main site. So to make it short:
If i'm using affliate, will Google see it as duplicate content?
How do I check it, and how do I prevent it? Thank you!0 -
Comparison of affiliate marketing programs
Looking for a comparison of major affiliate marketing programs (Amazon Associates vs Commission Junction). Can someone point me in the right direction?
Affiliate Marketing | | nicole.healthline0 -
How to flag inbound affiliate links to Search Engines
Afternoon Mozzers, I was chatting to our VP of marketing earlier about one of our sites with a somewhat unhealthy looking link profile. This is primarily caused by the sector its in and the fact that lots of low quality lead generators / affiliates operate there, sending traffic to us in return for payment on accepted leads. Now, he recalled that there is a way to mark these inbound links, through a URL parameter he thought, as being affiliates and therefore should be ignored as we don’t want them misinterpreted as an attempt to manipulate our rankings. I have been doing a spot of research but can't find a straight answer. heres a few articles i looked at: blogaid, Yoast, Webmaster world and the Moz Q&A.The problem is all these are from the perspective of a site linking out and acting as an affiliate, so all deal with that page not losing PR. The two methods i have derived from this boil down to: No follow the links Use an intermediary redirect page and script which you can block from robots.txt So, back to our case - Are there any ways we can signal to Search engines, as the destination site, that these links are from affiliates (such as this URL parameter our VP had vague recollections off) or should i just get in touch and ask the sites to make them Nofollow? Thanks, Tom.
Affiliate Marketing | | Sarbs0 -
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 -
Can linking out to a weak site harm my sites SEO?
We have an affiliate that wants us to link to his site to help him get started. His website looks okay and is in the same niche as us. However, he has PR 0 and no Page Trust. We could work in a natural looking link in a news article, but there is no way he could be considered any kind of "authority" link. Can linking to his site harm us?
Affiliate Marketing | | theLotter0 -
Affiliate program in the education niche
Just curious if anyone knew of some good ones out there. Looking to try a couple out. Thanks!
Affiliate Marketing | | astahl110 -
Big Affiliate Site vs. Small In House Software For Link Value
Hi, I have a client who sells consumer products and is interested in affiliate advertising. Of course, they can get set up with something like CJ.com. They are also interested in possibly using some third party software to take their affiliate effort in house and be able to offer publishers simple urls. The idea is that this might help the link profile for SEO as well. Here are my questions: Does anybody have any experience with the complication level associated with third-party software for link value path? So, relative pluses and minuses. Can anyone recommend an affiiate software that is reliable and easy to use? Any opinion on one big site to go with... CJ, GAN, someone else? Thanks!
Affiliate Marketing | | 945010