Site is Redirecting to www.* when rules don't exist
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!
-
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.0 -
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. 0 -
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. 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.0
Please sign in to leave a comment.
Comments
3 comments