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.

getting redirected even though redirection is disabled

Discussion in 'General Discussion' started by server10, May 1, 2014.

  1. server10

    server10 Registered

    Joined:
    May 1, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    I have two domains. When I setup my CPanel I set name servers for my old domain and after few days changed it to new names servers but whatever I do, it redirects me to old name servers.

    For example if I enter http://newdomain.com:2087 in my browser, it will redirect me to : https://ns21.domain.com:2087.
    Things I've done to solver the problem:

    I disabled redirection in my CPanel in : Home » Server Configuration »Tweak Settings.
    Always redirect to SSL => Off
    Require SSL => Off

    I deleted All certificates and installed new one for newdomain.com.

    I changed host name. I changed name servers in :
    Home » Server Configuration » Basic cPanel & WHM Setup




    I restarted my cpanel service,Apache ,....
    I also found few rewrite rules in apache configuration file but I don't want to make changes manually!
    Code:
    	RewriteCond %{HTTP_HOST} !^ns21.domain.com$
        RewriteCond %{HTTP_HOST} ^webmail\.
        RewriteRule ^/(.*) http://127.0.0.1:2095/$1 [P]
    
        RewriteCond %{HTTP_HOST} !^ns21.domain.com$
        RewriteCond %{HTTP_HOST} ^whm\.
        RewriteRule ^/(.*) http://127.0.0.1:2086/$1 [P]
    
        RewriteCond %{HTTP_HOST} !^ns21.domain.com$
        RewriteCond %{HTTP_HOST} ^webdisk\.
        RewriteRule ^/(.*) http://127.0.0.1:2077/$1 [P]
    
    

    Now, What should I do?
    Thanks in advance!
     
  2. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Off the top of my head, I suspect you need to look in your /etc/hosts file, but without further investigation that is just a guess.

    Please feel free to open a support ticket using the link in my signature. Also please paste the ticket number here in this thread so we can update it accordingly.
     
  3. server10

    server10 Registered

    Joined:
    May 1, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Problem solved, thanks!
     
Loading...

Share This Page