Reputation: 325
When I try to access my site at www.example.com it redirects to example.com I checked my .htaccess file but their are no rules inside. I checked my DNS records which show (looks good to me) :
cheapantivirusprices.com NS ns2.hostnetbv.nl
cheapantivirusprices.com NS ns1.hostnetbv.nl
ftp.cheapantivirusprices.com CNAME cheapantivirusprices.com
webmail.cheapantivirusprices.com A 37.128.146.237
mail.cheapantivirusprices.com A 37.128.146.237
localhost.cheapantivirusprices.com A 37.128.146.237
cheapantivirusprices.com A 37.128.146.237
*.cheapantivirusprices.com A 37.128.146.237
www.cheapantivirusprices.com A 37.128.146.237
Does anybody know how this can happen ?
Example url =
Upvotes: 0
Views: 183
Reputation: 9075
Check your DNS provider. These days most DNS providers offer HTTP redirection (e.g. from example.com to www.example.com, or vice versa). So it might be happening before the traffic even reaches your apache instance.
See http://help.dnsmadeeasy.com/record-entry/http-redirection/ for illustrative details.
Upvotes: 0
Reputation: 492
In documentation for Plesk 11.5 this behaviour is well described (see section "Website Hosting" - Preferred domain)
check redirect rules in apache virtual config for your domain(section mod_rewrite) /var/www/vhosts/system//conf/last_httpd.conf
Solution:
Upvotes: 1