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
-
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 -
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 -
Advise about Social Sharing between two loosely affiliated website - (retweets/fb cross sharing)
So basically, I have two websites. One being my Primary website and another which is very Niche/Seasonal. Now the Niche website received a penalty, and was later re-included however google traffic has been extremely limited since being reindexed. (bing never had a problem, still top ranked) I don't directly link back and forth between the two websites because its not worth hurting my primary websites ranking. I'm sure google knows I own both anyway, as they are on the same webmaster tools but the Niche site was kicked for spammy link building & its been an endless process removing them all. Anyway, with that being my concern. Would it be acceptable to cross share facebook posts, retweet and do things like that on occasion? My primary reason for asking is because the Niche website has a very large social following, so I would like to share post/tweets from my Primary site when its relevant and vice versa. Appreciate any suggestions/comments. Thanks!
Affiliate Marketing | | Southbay_Carnivorous_Plants0 -
Affiliate URLs Indexed in Google
We have an active in-house affiliate program which has a create-a-link function where affiliate, as in most affiliate programs, can build links back to our content to produce sales. The problem that I am seeing is that some of the affiliate URL versions are being indexed in Google rather than the original page. For instance.. http://www.ourdomain.com/page_start.aspx?affnum=F025212&Start_Page=RaceCar&referrer=createlink is outranking... http://www.ourdomain.com/racecar This presents 2 issues for us. First, this presents duplicate content issues obviously. Second, we pay our affiliates a portion of the sales so, in order to maximize profitability, we'd like the indexed pages to be the original version. What's the best way to handle this? I want to make sure that affiliates continue to get credit for links from their sites but search engine links should go to the original versions.
Affiliate Marketing | | ATIseo0 -
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 -
How much SEO benefit am I getting from 'affiliate' links?
Hi all, We run lots of different campaigns with affiliates and as such they have links on their websites pointing back to ours. I was keen to know how much 'link-juice' these kinds of links are passing back to our websites or how much SEO benefit we are getting from them. The links have "?=affiliate" in them. Any thoughts would be greatly appreciated!! Many thanks! Rob
Affiliate Marketing | | RobertHill0 -
URL Tags / Affiliate tracking help
1. If I give a sales rep a unique tag to put at the end of a URL for tracking purposes, will Google index the "www.mysite.com/service.html?unique-tag" version of a page and display it in search results? 2. Would a tool like Xenu be able to find that version of a URL? Reason for questions: If I give my sales people tags with their names in them, I don't want competitors poaching my sales people by search for all URLs on my domain. Follow up: are there any other potential issues that I should think about? Thanks!
Affiliate Marketing | | pbhatt0 -
Does an affiliate link bring the same SEO juice as a standard link?
I wonder if affiliate links, like the ones offered by Amazon Associates program bring the same SEO as would a link to the same page without this additional "ref=..."?
Affiliate Marketing | | maciek-0