10 Sep 2010
Support Center
»
Knowledgebase
»
Setting up an affiliate link redirect script for having your affiliate links on your domain name
Setting up an affiliate link redirect script for having your affiliate links on your domain name
Solution
To set up a redirect script for hosting your own affiliate links, create a file called .htaccess and place it in the root directory for your domain name. Or if an htaccess file already exists on your server then you will want to put these lines in your existing file.
This must be on a server running apache.
In that file, place either of the following:
# support for nanacast link campaigns
RewriteEngine On
RewriteRule ^go/([0-9]+)/?([0-9]*)/?([0-9]*)/?$
http://nanacast.com/vp/$1/$2/$3
[last]
OR
# without support for nanacast link campaigns
RewriteEngine On
RewriteRule ^go/([0-9]+)/?([0-9]*)/?$
http://nanacast.com/vp/$1/$2
[last]
Notes:
1. "go/" can be any directory that you choose, so long as a directory by that name doesn't already exist on your server
2. Your affiliates can now use
http://example.com/go/your_product_id/affiliate_id/optional_link_campaign_id/
and that will redirect through nanacast.com, set cookies, and end up at your product sales page
Article Details
Article ID:
5
Created On:
23 Mar 2009 07:51 PM
This answer was helpful
This answer was not helpful
Back
Login
[Lost Password]
Email:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Article Options
Print Article
PDF Version
Email Article
Add to Favorites
Home
|
Register
|
Submit a Ticket
|
Knowledgebase
Language:
English (U.S.)
Help Desk Software By Kayako eSupport v3.60.04