Need default hostname to respond with 410
Somehow Google grabbed the servers hostname a subdomain of our main domain. In the last week is somehow giving it a higher rank and pushing the actual working domain with ads off the organic search. I need to know where the default hostname srv1.mydomain.com resolves to so I can put in a .htaccess to return a 410 error code
-
Hey there! Hostname content gets served from the /var/www/html directory, so you'll see the basic error pages listed there. You can add a .htaccess file to change that behavior if you wish. Let me know if that works for you!
0 -
is there anyplace in the configs where a default domain is set? I cleared it out and now I see its trying to redirect to an old domain name when I call the server hostname instead of erroring
0 -
There's two options for a default domain - default based on IP access and default based on https. You likely want the https option:
https://support.cpanel.net/hc/en-us/articles/1500005458561-How-to-set-the-default-HTTPS-VirtualHost
0
Please sign in to leave a comment.
Comments
3 comments