Linode ip is redirected to subdomain
I've been trying to find out why my Linode server ip is redirected to a subdomain of my domain. So my domain is http://outsideit.nethttp://212.71.234.84http://ghent.outsideit.net
I have two corresponding A records.
one with an empty hostname, and 212.71.234.84 as IP
And another with
ghent as hostname and also 212.71.234.84 as IP.
What can I do to make surfing to my Linode IP 212.71.234.84 as IP effectively going to my domain root http://outsideit.net
Thanks for any advice around this.
Grtz.
Willem
4 Replies
If both sites are configured in the same file, you need to move the VirtualHost you want to be first up to the top.
Check out this doc which may be helpful to you:
Thank you both very much for your answers. I got it working now and added a .htaccess rule
RewriteCond %{HTTP_HOST} ^212\.71\.234\.84
RewriteRule (.*) http://outsideit.net/$1 [R=301,L]
To prevent Google from complaining for SEO.
Grtz
Willem