Invalid SQL: REPLACE INTO `swsessions` (`sessionid`, `ipaddress`, `lastactivity`, `useragent`, `isloggedin`, `sessiontype`, `typeid`, `dateline`, `status`) VALUES('084v4e8ri6tmrebkl9nn3edgqd95oefb', '98.84.18.52', '1727998244', 'CCBot/2.0 (https://commoncrawl.org/faq/)', '0', '40', '0', '1727998244', '0'); (The table 'swsessions' is full) Setting up an affiliate link redirect script for having your affiliate links on your domain name - Powered By Kayako eSupport
03 Oct 2024 
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

Keywords: Affiliate Link, redirect script, redirect link


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
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | News
Language:

Help Desk Software By Kayako eSupport v3.60.04