Mod Rewrite links

This kind of tracking is the hardest one to manage, but could result in good SEF (search engine friendly) links. If you are looking for SEF links, don't forget to check also our Direct link tracking and Anchor affiliate links

First, you need to define your link form - pefix, separator, suffix. Then you have to generate the code for the .htaccess file, create this file at your server and paste the code into the freshly created file. If you are going to use SEF links at a server where you do not have Post Affiliate Pro (PAP) installed, then you need to copy the .htaccess file to this server too...

Here is an example:


  1. Place the Post Affiliate Pro SEO .htaccess code at the top of your .htaccess file. If you already have some rules before the PAP SEO code, one of them can break the redirection, or make a redirection to another page.
  2. In some cases, when there are more restrictive rules in place for you server, SEO links may not work properly, or just in some (random) cases. In this case you can try to customize your suffix field. Add a "\" character  before the dot in the suffix field. For example, if you are using a suffix like in the picture above ".html" then change it to this "\.html". In some cases the dot character is understood as any number of a characters in a rewrite rule, and you need to escape it with "\". This way it will be understood as a dot character.

This tracking style does not need to have click tracking code integrated with the landing page. Also, this tracking style creates only 1st party cookies and they will be created on the same domain as PAP4 resides! Most convenient usage of this kind of linking is in case if your your PAP4 is on the same domain as your webpage/eshop. However, you can still count on IP tracking with this linking method in case your webpage/eshop was on other domain than PAP4.

If you want to rely on the Flash cookies, remember that this tracking method doesn't create Flash cookies.
As you can see in the code of .htaccess file, the tracking is made by the click.php - so it is similar as "Standard Links", but much SEO ...