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
-
Spent months creating links but Webmasters not picking it up
Hey Guys, I've been working on Blast My Deals.com an affiliate site which i have an issue hoping you guys can help with. For the past year and a half we created loads of links from multiple domains at-least over 700+ which Webmasters did pick up since then we've created even more links however when we go in to our Search Console "Links to your site" it shows 214 domains. It seems like our old links are being removed and our new links aren't being added. All the links we created have an average of DA40+ For the past 2 weeks ive noticed a significant drop in organic traffic and loosing our positions on our main keywords. Our DA has also dropped from 33 to 29 in a matter of 2 weeks. I checked everything including robots.txt, sitemap.xml but Im unable to find the reason for it.
Affiliate Marketing | | kazirahman0 -
What is the danger of integrating different affiliate program widgets far under our core content?
We have pages with lots of unique content that are ranking very well in google.
Affiliate Marketing | | lcourse
I am now considering to add towards the end of the pages widgets from the booking.com affiliate program and also from the affiliate program of two other accommodtion sites. These affilliate widgets would be placed far beyond our core content in the bottom 15% of the page. Each widget will contain a large number of links to the different accomodation options that booking.com or others offer. In our context this information would be indeed very useful for our visitors. Shall I be concerned that our google rankings may suffer due to google perceiving our site as less quality (or google misinterpreting our intent to generate traffic to affiliate programs) ? If google rankings would be suffering, is this something we would normally see in a week (most of our pages are crawled daily by google) and then recover in a week when we would remove the widgets or would this generally be something that would affect the ranking over the course of a month or more? Shall I be concerned abou link dillution since my pages would now have a lot of links pointing to the affiliate sites, which could devalue my internal links? Any thoughts?0 -
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 -
Comparison of affiliate marketing programs
Looking for a comparison of major affiliate marketing programs (Amazon Associates vs Commission Junction). Can someone point me in the right direction?
Affiliate Marketing | | nicole.healthline0 -
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 -
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 -
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