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 -
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 -
Issues with centrally hosting your own affiliate links?
Can anyone see any issues centralising affiliate links across a network? Example - many of us would use some kind of redirect from our sites like abc.com/go/afflink1
Affiliate Marketing | | RaceMedia
bcd.com/go/afflink1 using either htaccess, php or javascript to redirect to the affiliate site But as your network of site grows - to change a link involves visiting 40 sites to change each of the files in the "go" folders. Would there be any net effect from using an otherwise vacant domain to host the links - so they only need to be changed in one place? Example
abc/go/afflink1 links to afflinks.com/1 which then redirects to affiliate site
bcd/go/afflink1 links to afflinks.com/1 which then redirects to affiliate site So all your links across the network for afflink1 would point to your afflinks.com/1 Any changes only require changes to one file afflinks.com/1 Assuming there is nothing else on afflinks.com - would there be any issues? Assume all links no followed and afflinks.com noindex. AND.... our redirects have been in place for some years using javascript,php or .htaccess. What is the current best practice for redirecting affiliate links?0 -
'legitimate' link wheels
I was wondering what SEOMoz' thoughts are on the mega legitimate link wheel sites that are out there. TechMediaNet have been buying up massive news/media sites which arent really monetised (adsense) like http://www.space.com/ http://www.ouramazingplanet.com/ livescience.com and others and generating, admittedly good quality, curated content. Then seeding them with content with backlinks to their money site, toptenreviews.com which in essence is a review site with thousands of pages loaded with affiliate links no better than any of the other site out there. e.g. http://www.livescience.com/9755-bing.html due to the scale of what they're doing pretty much any keyword search i do with review in it (the last thing i wanted to purchase was a usb 3 hub) ends up with toptenreviews.com dominating the serps presumably due to the high PR the viral nature of the media sites are working with. Do you think Google will crack down on this, or do you think it's capitalism in action? TechMediaNet have invested millions in this project and just gotten another $33 million in funding recently.....
Affiliate Marketing | | idimmu0 -
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 much link juice passes through urls with affiliate id's?
hi we can get a valuable link with the desired anchor text from a news site. the destination url would be something like www.site.com/product. but in order to track conversions, our sales team would like to add an affiliate id to the url, so that it would look like this: www.site.com/product?sess_affiliate=ta how much link juice would a link to this affiliate url pass? would we be shooting our wad by linking to the ?sess-URL instead of the original URL?
Affiliate Marketing | | zeepartner0 -
Affiliate for SEO
Hello, If you get bad websites as affiliates through share a sale can that hurt your seo? Thanks Tyler
Affiliate Marketing | | tylerfraser0