Site Replication

Available since version 4.1.12.3

Replicated site is a feature that allows you to create replicated sites for your affiliates. This means that you create one site, use variables like {$firstname}, {$lastname} and Post Affiliate Pro (PAP) will create a personalized page for each of your affiliates. By creating a replicated site the affiliates can promote you even if they do not have their own site where they could place banners. If there is a replicated site set up in your system the affiliates can just copy its url and post it to potential customers. The replicated site is personalized for each affiliate and ensures that if the customers goes through this site there will be cookies generated and saved in both the customers' PC and database of PAP and upon a sale the referring affiliate (whose replicated site was visited) is going to be recognized by the sale tracking code. 
 

How to create a replicated site

Activate the Site replication feature

In the merchant panel navigate to Configuration > Features > Site replication and click the Activate button. After the restart of the application, this feature will be available. If instead of the Activate button there is a Buy now button, then click it and process the payment. After accomplishing the payment and refreshing your Post Affiliate Pro (or navigating to the ABOUT section) the feature will be available for activation.
 

Create a replicated site banner

Go to Banners -> Banners manager -> Add banner and choose Replicated site. You will get the following screen:



Choose name and campaign for this replicated site.

 

Choose URL of the replicated site

You can choose between default and custom location. For more information see Replicated site URL. Click create and you will get the following screen:

 

 

Upload replicated site files or modify the code of your site

Either upload all files to the Replicated site folder or to a custom folder in your server that you define in the 'Replicate external URL' field. 
For more information see Replicated site files
Or simply refer to your site to be replicated  in the 'Replicate external URL' field and into your site's source code add the following JavaScript code where the affiliate info should show up:
<!-- PAP Integration snippet -->
<span id="affinfo" style="width: 200px; display: block;line-height: 1em;height: 1em;"></span>
<script type="text/javascript">
if (typeof AffiliateID != "undefined") {
    var affInfoPlace = document.getElementById('affinfo');
    if (typeof affInfoPlace != "undefined") {
        if (AffiliateID) {
            affInfoPlace.innerHTML = "You have been referred by {$firstname} {$lastname}";        
        }
    }
}
<!-- PAP Integration snippet ends here -->
 

Test the created replicated site

Now the replicated site is created and you can preview it by clicking the link in next to the "Preview for" field.
 

THE EASIEST WAY TO REPLICATE A SITE

 
In order to replicate any site successfully, lets say abc.com do the following: 
  1. In Post Affiliate Pro merchant panel navigate to Banners -> Banners manager -> Add banner and choose Replicated site. Fill in the Name, choose the campaign. 
  2. At the Replicated site URL section select the desired url and press the Create button. After that press the "Generate .htaccess for this location". 
  3. Copy that code and append it to the root .htaccess file of the particular domain (in this example, the domain is abc.com) 
  4. Then press the "Check if .htaccess is working for this location" . If it says "Site replication .htaccess is working at this location" that's perfect.
    If it says: "Site replication .htaccess is not set up at this location or it is not working correctly. Please make sure that you have mod_rewrite and mod_proxy enabled in your Apache configuration", then contact the administrator of your web-server and ask him to ensure that both mod_rewrite and mod_proxy modules are enabled and working properly. To test if mod_proxy is enabled and works properly follow the instructions here:
    http://support.qualityunit.com/144027-How-to-find-out-whether-mod_proxy-works-properly-or-not
     
  5. For Replicated site files choose the "Replicate external URL" option and enter: http://abc.com/  and into the Files to process line enter: *.htm,*.html,*.php,DIR_INDEX
  6. Into your site where the affiliate information should be displayed if the affiliate's replicated site is visited place the following code:
 
<!-- PAP Integration snippet -->
<span id="affinfo" style="width: 200px; display: block;line-height: 1em;height: 1em;"></span>
<script type="text/javascript">
if (typeof AffiliateID != "undefined") {
    var affInfoPlace = document.getElementById('affinfo');
    if (typeof affInfoPlace != "undefined") {
        if (AffiliateID) {
            affInfoPlace.innerHTML = "You have been referred by {$firstname} {$lastname}";        
        }
    }
}
<!-- PAP Integration snippet ends here -->  
 
 
That's it. 
 

How to translate .htaccess content to ISS web.config ?


Check this link below and read more about :

http://learn.iis.net/page.aspx/557/translate-htaccess-content-to-iis-webconfig

Notes:
- The site replication feature is available since version 4.1.11.2
- the site replication requires to have mod_proxy and mod_rewrite enabled in your webserver
- if you have overwrite cookies turned off and the customer who opens a replicated site had already some cookies saved, these cookie won't be overwritten by the replicated site
If you have a shared server with HostGator, then mod_proxy will not work as expected due to having the "ProxyPreserveHost" module turned on.  
See how to check the functionality of mod_proxy:
Quality Unit's products

LiveAgent

LiveAgent integrates live chat software and help desk software features into a single customer support solution.

Try it free

Post Affiliate Pro

Post Affiliate Pro is a full featured affiliate tracking software ready to power your own affiliate program.

Buy Now