Fix backup redirect error
The Website Security Backups service requires the execution of a PHP script (cloner.php) in order to setup and effectively backup the website files and database.
Some websites will restrict the execution of PHP scripts such as these and redirect users to prevent abuse on the site.
If the backup is unable to complete due to a redirect, you can edit your .htaccess file to avoid the error.
The .htaccess file is a control file for cPanel and Managed WordPress hosting accounts. It's often used by applications, like WordPress, to help manage and control the site. Learn more about .htaccess.
- Connect to your hosting account with FTP.
- Once connected, go to the root directory for your WordPress site, which is the folder containing your site.
- Locate the .htaccess file and download a copy of the file to make a local backup.
- Edit the .htaccess file and add the following code to the very top:
# Exclude backup requests from rewrite rules <IfModule mod_rewrite.c> RewriteRule ^cloner\.php$ - [L] </IfModule>
- You can now run a new backup to see if the redirect has been resolved.