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
-
My affiliate links are being crawled by Google. Is this a bad thing? Also, should I add rel: nofollow to affiliate links?
Hi All, I have an issue on Google Search Console. It seems all my affiliate links are being crawled. Is this a bad thing? The reason I found out is that all but one link was flagged with a warming. It goes on to say that it was blocked by robots.txt. The strange thing is that I've not set any links to be blocked in robots.txt. Also, should affiliate links be nofollow? I'm asking because I was recently sent this article by Yoast on how to properly cloak my affiliate links without using a plugin. https://yoast.com/cloak-affiliate-links/ In the method, they apply the nofollow and noindex rules to the links. I'm just a little confused on how to go about affiliate links the SEO friendly way.
Affiliate Marketing | | nomad_blogger0 -
How do I easily no-follow my affiliate links?
Hi, I am in the process of setting up an affiliate marketing campaign for my site. I have done a bit of research and understand that it is safest in terms of SEO to add no-follow to the links from the affiliate sites. What is the easiest and simplest way to implement this?
Affiliate Marketing | | whiteonlySEO2 -
What impact do affiliate links have on SEO
We commonly reference engineering standards on our site (because half our products are known and searched for by those standard names) and have just signed up as an affiliate to an organisation that sell the standards. Which seems a nice match We're going through and making sure all are no follow now because that seems the general advice - but should we be doing anything else? Yoast says you should mask affiliate links - https://yoast.com/affiliate-links-and-seo/ - but that was from 2010. Matt Cutts is fairly clear on nonfollow - http://www.webpronews.com/heres-what-googles-matt-cutts-says-about-affiliate-links-and-nofollow-2012-06 - but not on whether it affects SERPS Does it? And what is the best way to handle it? This is a typical example of a page where we would have an affiliate link or two. http://www.oakleysteel.co.uk/fake-mill-certificates-en10168
Affiliate Marketing | | Zippy-Bungle0 -
Affiliate program links
Hello, I've question regarding affiliate partner generated links.Company www.example.com has a affiliate program. Partner www.example2.com links to the company site with affiliate link www.example.com/?affid=xxxx in banner, article etc. As I understand these type of links could hurt our Company site, so I asked partners to use rel="nofollow" in all links where they link to us usign ?affid=xxxx in url. To be 100% sure that I did the right thing I decided to post here my question. Could these type of links hurt our Company site? Regards,
Affiliate Marketing | | juris_l
Juris0 -
New to Affiliates Programs - Any advice?
Hi, I've no background knowledge of affiliate programs and am wondering if this would be a good idea for our company, www.vintageheirloom.com? We sell for the most part expensive, vintage bags and jewellery. Would an affiliates program be appropriate or possibly annoy and hinder customer loyalty rather than promote it? I'm using WP with Woocommerce and have seen a plugin that connects Woocommerce with Ambassador. Does anyone have any previous experience with this company, worked well, any things to watch out for etc. One issue that puzzles me if that I get the idea that you can put a tracking code on say a 3rd party blog banner, person clicks and buy product, that gets tracked. But what if customer abandons sale, comes back later directly to site and purchases? I'm guessing this isn't tracked. Is that right? As an aside I've a blogger friend who I'd like to pay for sending traffic that leads to sales. Is this the best way to track? Would the addition of 'How did you hear about us' question during 'Add to cart' process be a back up method? Any downsides to that, other than customer ignoring it? Thanks a lot for looking & any suggestions you may have! Kevin
Affiliate Marketing | | well-its-1-louder0 -
Affiliate site
I have a client I am doing SEO work for. He sells a system that helps people win at video keno. He sells a system for like $200 that shows people step by step how to play and win. Its a good site and he has a ton of verified winnings. My point in saying that, its not a fly-by-night system he wrote in his basement. I know - gambling, not easy for SEO. I don't know why I didn't think of this sooner. Wouldn't this potentially be perfect for affiliate marketing? He offers a good commission to whoever sends him traffic if they buy. If anybody could direct me to a resource or two that is reputable and would handle as much of the set up and management of this I would be very grateful! Thank you! Matthew
Affiliate Marketing | | Mrupp440 -
Recommended affiliate programmes (particularly UK-based)?
I'm starting a photography/travel/music blog and thought it might be a good idea to stick the occasional affiliate link in when it's appropriate. Does anyone have any recommendations? The related items would mainly be to DVDs, books and music, and sometimes something more travel specific like flights. Are the programmes from the likes of Amazon and ebay good, or would it be better to sign up to a system that covers many companies? It'll be my own CMS if that makes any difference. Thanks. 🙂
Affiliate Marketing | | Alex-Harford0 -
Is setting up affiliate marketing on website worth it for a small businesses?
Is setting up affiliate marketing on website worth it for a small businesses?
Affiliate Marketing | | seoukrsf0