getting redirected even though redirection is disabled

server10

Registered
May 1, 2014
4
0
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!
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
586
25
153
cPanel Access Level
Root Administrator
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.