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
-
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 -
UK Affiliate programmes as an advertiser
Hi, I'm looking into setting up an affiliate programme (as an advertiser). The company offers commercial mortgages for a UK market only. I was wondering if you had any experience with any UK affiliate platforms and had any recommendations? I want to test the water with a platform first as we don't really know whether it will work for us or not. We're looking at it for lead generation. Potentially offering payment on a completed mortgage or a lower payment per lead. I think it may be worthwhile offering both options. I'll have to work out the model, but we can make it work nicely for the publisher, I think. Thanks, Amelia
Affiliate Marketing | | CommT0 -
Can 302 chains (affiliate links) from "toxic" sources hurt you? Or are you "shielded"?
Hi, I'm going through some affiliate links, which send visitors to our website via a chain of several 302 redirects Some of them are relevant links, others perhaps not so much. I know that Google doesn't pass PageRank on 302s... But are they still considered valid links that pass, let's say, "reputation", "relevance", "link neighbourhood" kind of signals? Otherwise put, is a 302 similar to adding the "nofollow" attribute on a link? Sort of? Not at all? More succinctly put, should I be worried about "toxic" sources separated from us by 302 redirect chains? By the way, yes I recognize that (Google's 302 redirect chain handling aside) associating our brand with perhaps what some might consider spammy websites is not in general a good move; I'm concerned with the technical SEO implications here however. In fact, this technical information may very well help drive decisions/policies on where we allow our affiliate advertising to appear. Thanks 🙂 PS - The affiliate company by the way is cj.com if that helps
Affiliate Marketing | | ntcma0 -
Does Google look at Domain Registrar owner information when counting links into a site?
Question: If the domain registrar owner info is the same on two websites, will Google/other search engines discredit any linking between the two sites when calculating page rank? We have two company sites. One is our main ecommerce domain which we have been linking into from information domains in the past. We recently cut ties with the company that hosted them for us and wish to host them ourselves to preserve the inbound traffic. We are worried, however, that the traffic will be discredited now that we own both domains. Thanks for looking!
Affiliate Marketing | | tennisexpress0 -
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 -
Two Tier Internet, Bad Blogs and One page Affiliate Sites
Hi, I start a post on a popular internet marketing forum about how bad blogs - (i.e. the ones with one posts of over optimise spun garbage) - and the one page affiliate sites - trying to sell you something... (you know the ones) - were REALLY starting to annoy me and if/when something would be done by ISP's or Anyone really. Obviously google is aware of the issue with trying to push Google Plus to crowd source better search results. But with more and more sites popping up telling people how they can make money from having a niche website/page with adwords on it aren't we fast moving to a two tier internet.... How websites/pages exist purely to game search engines.... and will they ever disappear.... Sorry mini rant..... might even get some ideas for a blog post 😛 (not on a bad blog before anyone says anything)
Affiliate Marketing | | JohnW-UK0 -
Important question on affiliate links
The website I am working on is http://www.treadmillreviews.com. If you look at any of our affiliate links, they all have an href value of # or something that keeps the user on the page. However, there is an onclick="window.open('affiliate link URL')" code in them that has the affiliate link open in a new window. This website was set up to "hide" the affiliate links in essence this way. I just tried to make a PPC campaign in Google. Got shut down in about 20 minutes for being a "bridge page." Now, all of the content is original and not copied from anywhere. Supposedly Google could not see these links. Yet we got labeled how we did, and now I"m thinking it is causing rankings to hurt a bit. My question is, should I change how all of the links are set up? Should I make the href value be the affiliate link? It is a redirect like CJ.com uses. Should I nofollow those affiliate links? What is the best way to handle this problem? All help is appreciated.
Affiliate Marketing | | DanDeceuster0 -
Passing link juice via aff links?
Hi All, I know there was a recent post on this subject but I'm wondering if someone could take a look at these links and tell me if there is any SEO value in them at all and if not, what would be a way to improve them that might not be too much trouble for the affiliate? This URL: http://www.premiermodelskin.com/the-products/blemish-treatment has a Purchase button that passes product data (price, quantity, etc) directly to the basket of the host site (the site we want SEO benefit to). Using a form method to this URL: <form method="GET" action="<strong>http://www.monushop.co.uk/products/premier/blemish-treatment.html</strong>"> Qty <select id="add" name="add"> <option value="1" selected="selected">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> 15ml £16.25 </form> My question is, does G see that form GET action as a followable link? If not what would be a better method? Any feedback much appreciated.
Affiliate Marketing | | lovealbatross
Cheers
J0