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
-
How do I easily no-follow my affiliate links?
Hi, I am in the process of setting up an affiliate marketing campaign for my site. I have done a bit of research and understand that it is safest in terms of SEO to add no-follow to the links from the affiliate sites. What is the easiest and simplest way to implement this?
Affiliate Marketing | | whiteonlySEO2 -
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 -
Affiliates website, I need webpages linsk to study the topic
Kindly Provide me the best links where I can study about Affiliates websites, How to create them? there SEO? Content etc.
Affiliate Marketing | | bondhoward0 -
How to setup affiliate marketing for my website?
I work for an ecommerce company and would like to setup some sort of affiliate marketing similar to Amazon. 1. If someone was referred to our site and they made a purchase we would pay out. 2. If we referred a user to someone else's page and they made a purchase we would get paid. I looked into http://www.commissionfactory.com/ but wasn't sure if that would meet my needs. Does anyone have any recommendations?
Affiliate Marketing | | EcommerceSite0 -
Links exchange - Penguin update potential ??
Hi Everyone, If site A and site B exchange links in the past, it used to be kind of voided. So it is a practicve that we had pretty uch put on the side. But with the new penguin update, do you guys think that if 2 web sites are contacting each other to share a link in the interest of the user that it might be a new best practice to implement? Example, Car site contact car suspension site to exchange a link on relevant content such as blog articles or specific content on a page. What are your thoughts about that ? I am curious to know if anyone is wondering abouot that... Thanks, Alex
Affiliate Marketing | | webit400 -
What is the best way to boost no. of quality sites linking in?
Analysing my site ranking compared to competitors, I see that our weakness is getting others to share our content and link into it via their own blogs and social media - although I would say our social media activity is pretty good. We have also worked on getting listed free on relevant sites related to our product area (learn spanish in spain) in order to increase sites linking but this is still minute compared to our 2 main competitors. (As a note: paid listings are not totally justifiable for us at this point in time but perhaps in the future we will expand on this). Am I missing something here?
Affiliate Marketing | | sparkit0 -
Link exchange
Folks I just thought to myself that this forum must be filled with lovely SEOs who are busy working on multiple clients.... I'm very new to the industry myself... about a month into it 🙂 Any-hoots I was just wondering if anybody is working in a category that may be suitable for a link exchange with http://bluetea.com.au/ .... Please let me know
Affiliate Marketing | | PHDAustralia680 -
How to use different affiliate link based on geolocalisation in a Seo friendly way ?
Hi All, My website Sportytrader.com http://www.sportytrader.com/ works as an sport betting affiliate website on the french language markets. With sport betting legalisation in Europe, only people from France can play on french sport betting website. The same for Belgium or swiss. We have traffic from everywhere. So we need to geolocalize all our affiliate links to provide the right affiliate link to the right person in function of his location? What is the best way and the more seo friendly way to do that? Thanks a lot, Renaud
Affiliate Marketing | | jarnac0