Site is Redirecting to www.* when rules don't exist

RCady

Registered
May 3, 2017
1
0
1
Kansas
cPanel Access Level
Root Administrator
Hi there!
I've been scouring the interwebs all over for this and haven't been able to find a solution. If there's a similar question that was solved feel free to send me that way.

The issue I'm having is that our .htaccess files do not contain any rewrites that append www. to our domain name.

However, when accessing the site, (after clearing cache, dns, etc) it will still redirect to www.*

What can we do to figure out what's causing this issue?

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
The issue I'm having is that our .htaccess files do not contain any rewrites that append www. to our domain name.

However, when accessing the site, (after clearing cache, dns, etc) it will still redirect to www.*
Hello,

Could you try uploading a test HTML file to the website's document root (e.g. public_html) and see if you can reproduce the behavior when opening the HTML file in a browser? If you can't, then it suggests there's a configuration in the script's database or configuration file that's resulting in the redirect.

Thank you.
 

ottdev

Well-Known Member
Oct 1, 2013
122
4
18
cPanel Access Level
Root Administrator
For the OP RCady, are you using the hosting nameservers or a registrar or third party?
It could be that www .domain. tld points to the server hosting your account
while domain.tld points to your registrar's network and there is a redirect specified there.

If you look up [ANY] records for your domain both with and without www
Click the link on the next line to do that:
Dig (DNS lookup)
look for the line with: IN A X.XX.X.XX
If they are different numbers, this is your answer.
 

kdean

Well-Known Member
Oct 19, 2012
365
56
78
Orlando, FL
cPanel Access Level
Root Administrator
Also, if you're just typing "domain.com" in your browser, your browser may be adding the www. Try typing the following specifically instead and see if it acts the same.

Code:
http://domain.com
Another possibility is if the site is running a CMS like Wordpress, it may be configured to use www. and the software is handling the redirect.