Replicate your WordPress site

Replicate your WordPress site

The majority of customers attracted by the Site Replication feature use WordPress; therefore, let’s discuss how it can be replicated. There are two options, both easier and more difficult. For the sake of an example, lets assume your WordPress is at https://www.domain.com/

Easier way

– replicated pages at https://www.domain.com/SOMETHING/affiliateID

Setting up this type of setup is straightforward; adhere to these instructions:

  • Create a Site Replication banner.
  • Set Replicated site URL to be at custom location https://www.domain.com/SOMETHING (for example, ref, partner, site, or whatever you like)
  • Set Replicated site files to external URL https://www.domain.com/
  • set Files to process to *.html,*.htm,*.php,DIR_INDEX
  • Click on the button to generate .htaccess for this place option and then paste the code.
  • Visit the WordPress files, make the SOMETHING directory in the middle of your website, and within that folder, create a .htaccess file. Once you have it, insert the Post Affiliate Pro code.

This is the way to go; if your server supports mod_rewrite as well as mod_proxy as we do it, then the replication will work for you right now.

Harder way

– replicated pages at https://www.domain.com/affiliateID

  • Create Site Replication banners. Site Replication banner
  • Set Replicated site URL to be at custom location https://www.domain.com
  • Set Replicated site files to external URL https://www.domain.com/
  • set Files to process to *.html,*.htm,*.php,DIR_INDEX
  • Click on the button to generate .htaccess for this place. Click the Generate button, then copy and paste the code.
  • Navigate to the WordPress file and make edits to the .htaccess file that is located in the root directory of the WordPress installation. Copy the code generated by Post Affiliate Pro above the default WP code.

If you’re using WordPress URLs, which will be the standard setting that the majority of people use, you must get the complete list of the pages on your site to make use of, for instance, the plugin. You will need to extract the page names/identifications so that you can add them to conditions in .htaccess to prevent the Site replication redirection for these pages. The resultant .htaccess will look similar to this. It would contain every page you have:

Copy to clipboard# Start Post Affiliate Site Replication Code RewriteEngine on RewriteCond % !-d RewriteCond % !-f RewriteCond % !^/index\. RewriteCond % !^/wp-admin RewriteCond % !^/wp-login RewriteCond % !^/our-services RewriteCond % !^/benefits RewriteCond % !^/about RewriteCond % !^/contact RewriteCond % !^/faqs RewriteCond % !^/login RewriteRule ^([^/]+)/(. *) https://URL_TO_PAP/scripts/page.php?a_aid=$1&a_bid=8f68703d&a_file=$2 [L,P,QSA] RewriteCond % !-d RewriteCond % !-f RewriteCond % !^/index\. RewriteCond % !^/wp-admin RewriteCond % !^/wp-login RewriteCond % !^/our-services RewriteCond % !^/benefits RewriteCond % !^/about RewriteCond % !^/contact RewriteCond % !^/faqs RewriteCond % !^/login RewriteRule ^([^/]+) https://URL_TO_PAP/scripts/page.php?a_aid=$1&a_bid=8f68703d&a_redir=Y [L,P,QSA] # End of Post Affiliate Site Replication Code # here have to continue original WordPress htaccess content 

Note: URL_TO_PAP, as well as the id 8f68703d that follows “a_bid,” is expected to be generated by the PAP while creating PAP’s replicating of the site banner.

Utilize a backup plugin, such as Jetpack Backup.

There’s a huge selection of WordPress backup plugins that can be used. These plugins help you make safe copies of your site as well as all of its data and database.

But Jetpack Backup is the most effective WordPress Backup plugin. It provides real-time backups to ensure that each sale, blog post comment, and even change is fully saved. Additionally, they’re incremental and don’t need to fret regarding storage. The greatest part? You can back up and restore your website with only a few clicks, even in the event that your WordPress dashboard is not accessible. There is no programming or server management required!

 

Leave a Reply