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!
Now, What should I do?
Thanks in advance!
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!