The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by noonedeadpunk, Jun 10, 2016.

Tags:
  1. noonedeadpunk

    noonedeadpunk Registered

    Joined:
    Jun 10, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,734
    Likes Received:
    661
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page