I would like to convert a URL like this: http://www.google.com
to this google.com
. So if the format of the URL is like this http://google.com it will be converted to this google.com
I need to determine if two urls are the same no matter the format of the URL. Is there a way to do this. I am using the Uri library in C# but the host value is different for http://www.google.com
and http://google.com