Mobile app version of vmapp.org
Login or Join
Ann8826881

: Does Google treat different ports as different sites? I host my website on Azure and I have recently activated a feature to make it possible for me to directly access each server instance in

@Ann8826881

Posted in: #Azure #DuplicateContent #Google #Indexing #PortNumber

I host my website on Azure and I have recently activated a feature to make it possible for me to directly access each server instance in our web farm by a port number. For example example.com:10015 and example.com:10016.
I'm a bit nervous of duplicated content in Google and I do not want Google to detect these URLs in some way and start to index them. I recently had this problem with Azure's default cloudapp.net domains and I have now both added a 301 for this domain and also a robots.txt rewrite so I disallow bots for this domain.

I wanted to use a robots.txt rewrite rule for the different ports as well but it doesn't seems to work for some reason. I don't know if it has to do with Azure's handling, but for example the SERVER_PORT variable is returning port 80 even if I go the to port 10015.

Anyhow, I was just trying to add my site with a port specification in Google Webmaster Tools, but that didn't work. So basically my question is if I have to worry about this at all, does Google even treat different ports as different sites?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ann8826881

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

Does Google even treat different ports as different sites?


Yes. Google can and does index URLs with non-standard ports, as relayed here by Google's Matt Cutts, and also confirmed in a comment to this answer here on our site by Google's John Mueller: Yep, we can index sites on IP addresses and/or on non-standard ports.


I'm a bit nervous of duplicated content in Google


If these different URLs return the same content, then you can indicate to Google which is the preferred URL for your content to index by using a canonical link. As indicated there by Google:

To address these issues, we recommend you define a canonical URL for content (or equivalent content) available through multiple URLs.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme