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 -
Setting up small affiliate network - Do follow?
I have a client that I help with both SEO and marketing. I have thought about approaching 5-10 niche appropriate bloggers to join a custom affiliate network. I'd like to gain both sales and backlinks. I know it's gray, but do you have any advice?
Affiliate Marketing | | julie-getonthemap0 -
I'm routating keywords to find my website and to get better ranking; I know i want to use the most keywords that are prevelant in my site; iss that the only keywords I want to use for ranking purposes; if not what keywords were do i find them?
I want better page ranking for my website; keywords that work and backlinks;
Affiliate Marketing | | prostene13590 -
How to track Affiliate Clicks to Google Analytics
Hi, We would like to track the affiliate link clicks. Is there any way to track it from Google Analytic? Rajiv
Affiliate Marketing | | gamesecure0 -
Affiliates website, I need webpages linsk to study the topic
Kindly Provide me the best links where I can study about Affiliates websites, How to create them? there SEO? Content etc.
Affiliate Marketing | | bondhoward0 -
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 -
Links from Blogs and Forums
Hello Everyone, We are a small, local business in a city in Canada. We just got a new website and I am responsible for basically all of it, including the SEO. I was researching the back-links from our top-ranking competitor (another small, local business in our city). Here is their ranking: PA 40, with 441 Links from 111 RDs DA 30, with 6,864 Links from 116 RDs Here is the second-highest guy: PA 29, with 101 Links from 10 RDs DA 15, with 1,682 Links from 11 RDs As you can see, the top-ranking competitor's PA & DA are just about double his closest competitor. (Don't ask where we currently stand!) But, on closer examination, most of the links from our top-ranking competitor come from a local blog, where our competitor's ad appears in an advertisement on the sidebar. Each time they make a post, which is just about every day, our competitor gets a link. They also have a lot of links from a forum on a rock band's website. The original post was something about finding music, but the responses all have links to unrelated websites. This seems really, really slimy to me. What's going on?
Affiliate Marketing | | StillLearning0 -
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