How to recover if moved websites redirects to cgi-sys/movingpage.cgi

  WHM

Prerequisites

Root access to the CentOS system

Implementation

There are times when the express transfer is used and the destination server has redirect entries in .htaccess files from an incomplete transfer process. This leaves .htaccess files with

RedirectMatch \.(dynamiccontent|pl|plx|perl|cgi|php|php4|php4|php6|php3|shtml)$ http://sever.something.com/cgi-sys/movingpage.cgi


Those entries will need to be removed.

Step 1: There is a script that can remove this line automatically

/usr/local/cpanel/scripts/xfertool –unblockdynamiccontent cpanelusername

Step 2: The following can be used if you need to complete this on all accounts on the server

cut -d ‘ ‘ -f2 /etc/trueuserdomains | while read user; do /usr/local/cpanel/scripts/xfertool –unblockdynamiccontent $user ; done

After this has been completed there shouldn’t be any sites loading with movingpage.cgi.

LEAVE A COMMENT