• Home
  • About
  • Contact
  • Guest Articles
  • Resources
  • Disclosure

Subscribe to Articles

logo

 Powered by Max Banner Ads 

Tips

Recent Posts

  • Sponsor My Nike+ Challenge for Charity
  • Affiliate Marketing Fanatics 20: Fly, Fat A**, Fly (But not on Southwest)
  • Affiliate Marketing Fanatics 19: It’s a Search Tool!
  • Interview with Lisa Riolo of Impact Radius
  • Internet Marketing From The Real Experts

  •  Powered by Max Banner Ads 

Affiliate Marketing

  • AdamRiemer.me
  • AffBook.com
  • Affiliate Advocacy
  • Affiliate Marketers Give Back
  • Affiliate Marketing Plan
  • Affiliate Tip Blog
  • BAMroll
  • CostPerNews
  • Eric Nagel
  • For Me To Coupon
  • GeekCast.fm
  • Jangro.com
  • Mike Buechele
  • MissyWard.com
  • Murray Newlands
  • Performance Marketing Association
  • Stephanie Lichtenstein
  • Super Affiliate Mindset
  • Super Affiliate Tips
  • TheRealTimJones.com

Friends

  • Airsoft of Alameda
  • Diary of a Genial Black Man
  • FoodAskew
  • Girl Scout Guide
  • Gism Butter
  • Nic’s Blog
  • Nikkifae’s Weblog
  • Railroad Redux
  • The World of Rob Kaas

General Marketing

  • 45n5.com
  • American Blogger Directory
  • Blinkstar Media
  • Bloggeries
  • It’s Different For Girls
  • Marketing Pilgrim
  • Motherhood, Marketing, and Medical Mayhem
  • ReveNews
  • Seth’s Blog
  • The Biz Web Coach, Jim Kukral

PHP Affiliate Link Masking

Author: Trish Category: Affiliate Marketing Tags: affiliate links, Affiliate Marketing, coding, HTML, James Seligman, JMCA Media, php, redirects

Thursday
Jun 12, 2008

If you’re like me and have jumped into affiliate marketing head on, you may not know some of the nuances of using affiliate links. Recently, James Seligman of JMCA Media schooled me on how to really easily set up PHP redirects for your affiliate links to make them a bit more user friendly. Let me share this knowledge with you!

  • Open up Notepad or a similar text editing program.
  • Add the following code:
    <?
    header(”location:affiliate-link-goes-here“);
    ?>
  • Replace the portion in italics above with the tracked link from the program of your choice.
  • Save the file as a .php file with whatever name is easiest for you.
  • Upload it to a designated diretory or folder on your website. Some possible names for the folder are recommends, deals, however you can call it whatever is easiest for you.
  • When you want to add an affiliate link, just add the code <a href=”/recommends/affiliate.php”>Affiliate </a>

It’s that simple! I had head of PHP redirects before but, not knowing PHP very well myself, I never looked into how to do it. Luckily James was there to show me just how easy it is!  And now you have a weekend project to go mask all your affiliate links!


 Powered by Max Banner Ads 

Share:
image image image image image image image image image image

Comments

Joy Ohare

June 12th, 2008 at 4:53 pm

Thanks Trish. I was trying to use the php files, and I understood how to make them, but I did not understand where to put them or refer to them. This was very timely for me.

TrishaLyn

June 12th, 2008 at 5:38 pm

Awesome! Glad this came right at the right time then :)

Fred

February 10th, 2009 at 1:54 pm

Hmm.. It doesnt work for me… It just opens up the http://www.mysite.com/recommends/affiliate.php i the url without redirecting….

TrishaLyn

February 10th, 2009 at 8:14 pm

Hmm… try removing the space between Location: and the link. So

header(”location:link“);

jgoode

May 9th, 2009 at 1:08 am

fantastic! thank you so much for sharing… I need to get on with these links sooner than later


Click here to cancel reply.

Comment Form

Early Bird Pricing for CJU Ends June 15
Contest Time Ticking Away…

Community

TwitterCounter for @trishalyn

Subscribe Via Email

Lijit Search

Oppose Affiliate Tax - Support Small Business

Categories

  • Affiliate Marketing
  • Affiliate Marketing Fanatics
  • Blogging
  • Branding
  • Career
  • Communication
  • Conferences
  • Contests
  • CourtesyCast
  • Cribbed Content
  • Editorial
  • Email Marketing
  • Free Toolsday
  • Glossary
  • Graphic Design
  • Guest Posts
  • Internet Marketing
  • News
  • Oddities
  • Photos
  • Podcasts
  • Print Marketing
  • Quote of the Day
  • Reviews
  • Saturday Shopper
  • Search Marketing
  • Social Media
  • Sponsored
  • Telecommuting
  • Tools
  • Traffic Sources
  • Travel
  • Videos
  • Viral Marketing
  • Web 2.0

Tags

advertising Affiliate Marketing affiliates Affiliate Summit Alexandra Wharton analytics ASE08 ASE09 blogosphere business Conferences Contests Cribbed Content definitions directory education Facebook free GeekCast.fm Glossary Google Internet Marketing jargon Jim Kukral language Las Vegas links Lisa Picarille Michael Buechele New York PsPrint quotes Revenue Magazine sales Sam Harrelson San Francisco SEO sessions Shawn Collins Social Media terminology terms Tools trade shows Twitter

Copyright 2010 TrishaLyn - All Rights reserved.

Wordpress theme by: WPUnlimited

Podcast Powered by podPress (v8.8)