stop page redirects when using server name vs domain name
Let me prefix this by saying I have not searched as I am not really sure what keywords to use to find the answer.
I have a server that has only 1 site on it. Apparently search sites are indexing the site by using the server name vs the actual domain name. so its indexing pages like .
The page renders when either is used. I want to break it so if you visit the URL with the servername in the URL it does not render to stop search sites from indexing this way.
I have not been able to find the proper setting to change in WHM.
-
Hello :) You should not be able to access your web pages using the server's hostname by default. Try rebuilding the Apache configuration file and clearing your browser cache to see if the issue continues: /scripts/rebuildhttpdconf
Thank you.0 -
[quote="cPanelMichael, post: 1499141">Hello :) You should not be able to access your web pages using the server's hostname by default. Try rebuilding the Apache configuration file and clearing your browser cache to see if the issue continues: /scripts/rebuildhttpdconf
Thank you.
Thanks for the above. I ran the script you referenced and then restarted apache and loading pages via0
Please sign in to leave a comment.
Comments
3 comments