getting redirected even though redirection is disabled
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!
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!
-
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. 0 -
Problem solved, thanks! 0 -
I have this problem too. editing /etc/host didn't help
I've deleted all redirects vi cPanel and I've checked the .htaccess files, where else might a redirect be stored?
0 -
HappyFeat - it's usually best to create a new thread instead of replying to one that is so old - we'd hate to miss it and not help you!
Did you adjust the settings in WHM >> Tweak Settings under the redirection tab to perform how you'd like? https://docs.cpanel.net/whm/server-configuration/tweak-settings/#redirection
0
Please sign in to leave a comment.
Comments
4 comments