Replicated site gives: Error loading user 'index.html.var'

If you are getting this red error:
Error loading user 'index.html.var'
instead of a replicated site, the problem is that the affiliate parameter is missing. This can happen e.g. in case when you use the "custom location" setting for the site replication and you use the same URL for your main site... So usually you access your site here: https://yoursite.com/ and you have also set this as the custom location for the site replication, so your affiliates has links
looking like this: https://yoursite.com/testaff

The code at your server (.htaccess code) makes the replication to work - it reads the referral ID behind
https://yoursite.com/ and creates the replicated site, so in this case, it would be "testaff" whose site will be displayed. So when there is nothing after https://yoursite.com/ there is actually something hidden in the browser - index.html and this is read by .htaccess code as index.html.var because it thinks this is an affiliate (referral ID), sends it to the replication script and the script returns the error because there is no affiliate with referral ID index.html.var ...

To fix this problem, you have to modify your .htaccess code a little. Add these lines below line "RewriteEngine on" in your .htaccess code:
 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^index.html.var$ https://www.yoursite.com/PAP4_directory_name/scripts/page.php?a_aid=general_affiliate_ID_Here&a_bid=replication_ID_here&a_redir=Y [L,P,QSA]
Or you can use there default page url (if you don't want to rediret to default affiliate):
 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^index.html.var$ https://www.yoursite.com/index.html [L,P,QSA]
×