/cgi-sys/movingpage.cgi tries to redirect to resellers' main domain

noonedeadpunk

Registered
Jun 10, 2016
1
0
1
Ukraine
cPanel Access Level
DataCenter Provider
Hello,

I've faced the following problem at a server. During express migration, in clients .htaccess, was created redirect to /cgi-sys/movingpage.cgi, but the redirect was to resellers main domain. The problem is that we use fake main domains for our resellers, and we don't want our customers to be forwarded to them.
I believe that previously, during express migration, the redirect had been created directly to the same domain as was requested. But now .htaccess looks like:
Code:
RedirectMatch \.(dynamiccontent|pl|plx|perl|cgi|php|php4|php5|php6|php3|shtml)$ http://reseller.main.domain.com/cgi-sys/movingpage.cgi
So the question is - how to change this behavior and make cPanel to create simple redirects to /cgi-sys/movingpage.cgi, without adding resellers domain into it.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Hello,

The source server handles changes via the /usr/local/cpanel/scripts/xferpoint file. However, you will need to use a custom command if you want to change the entries in your .htaccess files. For example, this is one method of replacing an entry in all .htaccess files:

Code:
replace "fakedomain.com" "realdomain.com" -- /home/*/public_html/.htaccess
This would replace all instances of "fakedomain.com" with "realdomain.com" in all of the .htaccess files within the public_html directory of accounts in /home.

Thank you.