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
-
Guilty of keyword cannibalization. What's the best way to fix it without losing link juice?
Hi guys, I'm new here but I already spent hours reading the forums. I didn't post before because I didn't feel the need to, but today it's different. I don't want to take fixing steps that are not optimal for my website situation. So here's the problem : I am working on an affiliate website that is growing day after day and is already profitable. It is not by any mean a thin affiliate site. It's a french language website with product reviews on it. Right now there is 1 main page (hero page) per review in which I describe the products, put affiliate links, present useful information, etc. These pages have a good word count and I am targeting 1-2 main keywords on them which I consider a good practice. Couple of months ago I decided to add a product page for each one (normally it's 5 products per review) so I added 5 more page per review, targeting product names as new keywords. Problem is that : Product names are very similar to the main keywords (keyword cannibalization problem) There is very little added information on the product page when you compare it to the hero page (too thin) A lot of information is repeated on each of the product pages. I think this is bad. So I decided to keep only the hero pages to keep more link juice, avoid keyword cannibalization, improve page authority and get more content on one single page (only information that was not repeated have been added to hero page). I removed ALL THE LINKS to product pages (from the hero page). So now for my questions : Is it better to keep the product pages in my sitemap or to delete them right away? Is it better to let the product pages die by themselves over time or to 301 redirect all the product pages to hero page to keep link juice? The next question is a bit more complicated. Hope you guys understand what I mean. Considering that product pages are now gone, this will for sure weaken my bounce rate % because only hero page with good/deep information will be accessible to visitors (there is not a lot of internal links in each review, except to other, RELATED reviews). Is setting up goals in google analytics + telling google that it should consider a click on an affiliate link as a NEW PAGE VIEW (like it would act for a click on a link of a product on my own domain) will help for SERPs and SEO?? Or it will just help ME to see a lower bounce rate and setting goals? In other words, is tracking these links and let google see them as new pages clicks will help for the page rankings or not? Because from what I am understanding, a good bounce rate helps for rankings. If the changes made to avoid keyword cannibalization work, when could I potentially see the effects/benefits in the SERPs and trafic?
Affiliate Marketing | | benoit_20181 -
Affiliate links and parameters creating duplicate page titles
Hi, we have an affiliate system and use rel=**canonical **to canonicalise them to the right link. Still, we see those links creating duplicate page titles, in Moz crawl and in Google search console. How are we supposed to treat those links so they do not create duplicate content? Thanks for your help!
Affiliate Marketing | | guidetoiceland0 -
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 -
SEO and Affiliate Links
Hello, We run a travel related website and we started to run our own affilate newtwork to promote the sales of our products. At the moment the affilate links pont to a spacific affilate url in order to tack conversions : abcweb.com/affiliate/nameqaz I'm wondering how is the best way to run a private affilate programm considering SEO: Is there a way yo benefit from those links ? What are the best strategies to do this? If yes, Is there any benefit from redirecting 301 those links to the original page (the one accesible to google and the one we want to rank for) or is it better to use a king of canonical method. Thanks a lot for sharing you experiences , giving your opinion and indicate resources. Best Regards Daria
Affiliate Marketing | | stereo690 -
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 -
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 -
In search of the perfect SEO affiliate ID'd URL
Hi, I'm building an affiliate system for our website, and I obviously want to gain as much SEO benifit from it as possible. So I am wondering what the optimal solution is with regard to how an affilaite URL is tagged. After looking into it a bit more - I have come up with the following. 1/. Use an affilaite URL idendifier with a #
Affiliate Marketing | | James77
EG like www.mysite.com#123 2/. 301 redirect the affilaite URL to the "real URL"
EG www.mysite.com#123 301 -> www.mysite.com What do you think of this? Thanks0